 |
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()) {
63 if (prevGameObject ==
null) {
A MapModel reflects the data of a map.
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.
MoveSquareInvAction(@NotNull final SelectedSquareModel< G, A, R > selectedSquareModel, @Nullable final MapManager< G, A, R > mapManager)
Creates a new instance.
void moveInv(@NotNull G gameObject, @NotNull GameObject< G, A, R > prevGameObject)
Moves a GameObject to the inventory of another game object.
Reflects a game object (object on a map).
Graphical User Interface of Gridarta.
GameObjects are the objects based on Archetypes found on maps.
boolean doAction(final boolean performAction, @Nullable final G gameObject)
Interface for MapArchObjects.
void moveSquareInv()
Action method that moves the selected game object to its inventory.
The model component of the selected square control.
MapModel< G, A, R > getMapModel()
Returns the MapModel this map square is part of.
T getHead()
Return the head part of a multi-part object.
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.
G getPrev()
Returns the game object preceding this game object.