 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.action;
28 import net.
sf.japi.swing.action.ActionMethod;
29 import org.jetbrains.annotations.NotNull;
30 import org.jetbrains.annotations.Nullable;
57 protected boolean doAction(
final boolean performAction, @Nullable
final G gameObject) {
58 if (gameObject ==
null || !gameObject.isHead() || gameObject.isBottom()) {
66 gameObject.moveBottom();
A MapModel reflects the data of a map.
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.
void endTransaction()
End a transaction.
void moveSquareBottom()
Action method that moves the selected game object to the bottom.
final SelectedSquareModel< G, A, R > selectedSquareModel
The SelectedSquareModel that is updated.
void beginTransaction(@NotNull String name)
Starts a new transaction.
An net.sf.gridarta.utils.EditorAction that moves the selected game object in the SelectedSquareModel ...
Reflects a game object (object on a map).
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.
MapModel< G, A, R > getMapModel()
Returns the MapModel this map square is part of.
MapSquare< G, A, R > getMapSquare(@NotNull Point pos)
Get the square at a specified location.
MoveSquareBottomAction(@NotNull final SelectedSquareModel< G, A, R > selectedSquareModel, @Nullable final MapManager< G, A, R > mapManager)
Creates a new instance.
MapModel< G, A, R > mapModel
The currently active MapModel.
boolean doAction(final boolean performAction, @Nullable final G gameObject)
Displays the contents of the currently selected map square.