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) {
An EditorAction that toggles the current pre-selection in the selection.
void selectSquare()
Toggles the current pre-selection in the selection.
void setAction(@NotNull final Action action, @NotNull final String name)
Sets the Action instance for this editor 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.
FLIP
All squares that are preselected change state of selection.
Action action
The Action associated with this editor action.
boolean doSelectSquare(final boolean performAction)
Executes the action.
boolean doSelection(final boolean performAction, @NotNull final SelectionMode mode)
Executes an action for changing the selection.
Abstract base class for actions that change the current selection.
Modes that describe how squares get selected.
Interface for MapArchObjects.