 |
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.isTop()) {
A MapModel reflects the data of a map.
MoveSquareUpAction(@NotNull final SelectedSquareModel< G, A, R > selectedSquareModel, @Nullable final MapManager< G, A, R > mapManager)
Creates a new instance.
A MapManager manages all opened maps.
Base package of all Gridarta classes.
An net.sf.gridarta.utils.EditorAction that moves the selected game object in the SelectedSquareModel ...
Abstract base class for actions that move the selected game object in the SelectedSquareModel.
void endTransaction()
End a transaction.
final SelectedSquareModel< G, A, R > selectedSquareModel
The SelectedSquareModel that is updated.
void beginTransaction(@NotNull String name)
Starts a new transaction.
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.
boolean doAction(final boolean performAction, @Nullable final G gameObject)
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.
MapModel< G, A, R > mapModel
The currently active MapModel.
Displays the contents of the currently selected map square.
void moveSquareUp()
Action method for moving an arch up within its square.