 |
Gridarta Editor
|
Go to the documentation of this file.
20 package net.sf.gridarta.model.undo;
26 import org.jetbrains.annotations.NotNull;
27 import org.jetbrains.annotations.Nullable;
82 if (this.savedSquares !=
null) {
83 throw new IllegalStateException(
"saved squares already have been set");
97 throw new IllegalStateException(
"saved squares are unset");
SavedSquares< G, A, R > savedSquares
The affected map squares.
A getMapArchObject()
Returns the map arch object before the operation started.
Base package of all Gridarta classes.
void setSavedSquares(@NotNull final SavedSquares< G, A, R > savedSquares)
Records the affected map squares.
final A mapArchObject
The map arch object before the operation started.
Reflects a game object (object on a map).
UndoState(@NotNull final String name, @NotNull final A mapArchObject)
Creates a new instance.
SavedSquares< G, A, R > getSavedSquares()
Returns the map squares that have changed in the operation.
Records a set of changed map squares.
GameObjects are the objects based on Archetypes found on maps.
String getName()
Return the name of the operation.
Interface for MapArchObjects.
Holds information to undo/redo one edit operation.
final String name
The name of the operation.