20 package net.sf.gridarta.action;
22 import javax.swing.Action;
28 import net.
sf.japi.swing.action.ActionMethod;
29 import org.jetbrains.annotations.NotNull;
30 import org.jetbrains.annotations.Nullable;
47 public void setAction(@NotNull
final Action action, @NotNull
final String name) {
Action action
The Action associated with this editor action.
An EditorAction that adds the current pre-selection to the selection.
boolean doAddToSelection(final boolean performAction)
Executes the action.
Base package of all Gridarta classes.
Reflects a game object (object on a map).
GameObjects are the objects based on Archetypes found on maps.
void addToSelection()
Adds the current pre-selection to the selection.
boolean doSelection(final boolean performAction, @NotNull final SelectionMode mode)
Executes an action for changing the selection.
void setAction(@NotNull final Action action, @NotNull final String name)
Sets the Action instance for this editor action.
Abstract base class for actions that change the current selection.
ADD
All squares that are preselected get selected.
Modes that describe how squares get selected.
Interface for MapArchObjects.