20 package net.sf.gridarta.action;
27 import net.
sf.japi.swing.action.ActionMethod;
28 import org.jetbrains.annotations.NotNull;
29 import org.jetbrains.annotations.Nullable;
50 super(selectedSquareModel, mapManager);
63 protected boolean doAction(
final boolean performAction, @Nullable
final G gameObject) {
64 if (gameObject == null || !gameObject.isHead()) {
68 G nextGameObject = gameObject.getLast();
69 if (nextGameObject == null) {
70 nextGameObject = gameObject;
72 final G tmp = nextGameObject.getNext();
77 nextGameObject = nextGameObject.getContainerGameObject();
78 if (nextGameObject == null) {
A MapManager manages all opened maps.
Graphical User Interface of Gridarta.
void moveSquareNext()
Action method that selects the next game object.
boolean doAction(final boolean performAction, @Nullable final G gameObject)
Base package of all Gridarta classes.
Abstract base class for actions that move the selected game object in the SelectedSquareModel.
Reflects a game object (object on a map).
An net.sf.gridarta.utils.EditorAction that selects the next game object in the SelectedSquareModel.
MoveSquareNextAction(@NotNull final SelectedSquareModel< G, A, R > selectedSquareModel, @Nullable final MapManager< G, A, R > mapManager)
Creates a new instance.
GameObjects are the objects based on Archetypes found on maps.
Displays the contents of the currently selected map square.
void setSelectedGameObject(@Nullable final G gameObject)
Sets the currently selected GameObject.
The model component of the selected square control.
final SelectedSquareModel< G, A, R > selectedSquareModel
The SelectedSquareModel that is updated.
Interface for MapArchObjects.