Package net.sf.gridarta.actions
Class UndoActions
- java.lang.Object
-
- net.sf.gridarta.actions.UndoActions
-
public class UndoActions extends java.lang.ObjectUtility class implementing undo and redo actions.
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static <G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
voidredo(@NotNull UndoModel<G,A,R> undoModel, @NotNull MapModel<G,A,R> mapModel)Perform a "redo" action on aMapModel.static <G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>>
voidundo(@NotNull UndoModel<G,A,R> undoModel, @NotNull MapModel<G,A,R> mapModel)Perform an "undo" action on aMapModel.
-
-
-
Method Detail
-
undo
public static <G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> void undo(@NotNull @NotNull UndoModel<G,A,R> undoModel, @NotNull @NotNull MapModel<G,A,R> mapModel)
Perform an "undo" action on aMapModel.- Parameters:
undoModel- the state to undomapModel- the map model to affect
-
redo
public static <G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> void redo(@NotNull @NotNull UndoModel<G,A,R> undoModel, @NotNull @NotNull MapModel<G,A,R> mapModel)
Perform a "redo" action on aMapModel.- Parameters:
undoModel- the state to redomapModel- the map model to affect
-
-