 |
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 prevGameObject = gameObject.getPrev();
69 if (prevGameObject ==
null) {
70 prevGameObject = gameObject.getContainerGameObject();
71 if (prevGameObject ==
null) {
74 }
else if (performAction) {
76 final G tmp = prevGameObject.getFirst();
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.
Reflects a game object (object on a map).
Graphical User Interface of Gridarta.
final SelectedSquareModel< G, A, R > selectedSquareModel
The SelectedSquareModel that is updated.
GameObjects are the objects based on Archetypes found on maps.
MoveSquarePrevAction(@NotNull final SelectedSquareModel< G, A, R > selectedSquareModel, @Nullable final MapManager< G, A, R > mapManager)
Creates a new instance.
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 previous game object in the SelectedSquareMode...
Displays the contents of the currently selected map square.
boolean doAction(final boolean performAction, @Nullable final G gameObject)
void moveSquarePrev()
Action method that selects the previous game object.