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) {
66 return mapCursor != null && mapCursor.
selectAbove(performAction);
MapCursor< G, A, R > getActiveMapCursor()
Return the map cursor of the current map view if it is active.
MapCursor provides methods to move and drag on map.
boolean selectAbove(final boolean performAction)
Moves the selected GameObject.
Base package of all Gridarta classes.
Reflects a game object (object on a map).
GameObjects are the objects based on Archetypes found on maps.
boolean doSelectArchAbove(final boolean performAction)
Executes the "select arch above" action.
void selectArchAbove()
Action method for "select arch above".
void setAction(@NotNull final Action action, @NotNull final String name)
Sets the Action instance for this editor action.
Abstract base class for actions that have to track the current map cursor.
An EditorAction that selects the game object above the current game object.
Action action
The Action associated with this editor action.
Interface for MapArchObjects.