 |
Gridarta Editor
|
Go to the documentation of this file.
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;
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) {
boolean doAction(final boolean performAction, @Nullable final G gameObject)
A MapManager manages all opened maps.
Base package of all Gridarta classes.
Abstract base class for actions that move the selected game object in the SelectedSquareModel.
MoveSquareNextAction(@NotNull final SelectedSquareModel< G, A, R > selectedSquareModel, @Nullable final MapManager< G, A, R > mapManager)
Creates a new instance.
Reflects a game object (object on a map).
final SelectedSquareModel< G, A, R > selectedSquareModel
The SelectedSquareModel that is updated.
Graphical User Interface of Gridarta.
GameObjects are the objects based on Archetypes found on maps.
Interface for MapArchObjects.
The model component of the selected square control.
void setSelectedGameObject(@Nullable final G gameObject)
Sets the currently selected GameObject.
An net.sf.gridarta.utils.EditorAction that selects the next game object in the SelectedSquareModel.
void moveSquareNext()
Action method that selects the next game object.
Displays the contents of the currently selected map square.