public class UndoActions
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> |
redo(@NotNull UndoModel<G,A,R> undoModel,
@NotNull MapModel<G,A,R> mapModel)
Perform a "redo" action on a
MapModel . |
static <G extends GameObject<G,A,R>,A extends MapArchObject<A>,R extends Archetype<G,A,R>> |
undo(@NotNull UndoModel<G,A,R> undoModel,
@NotNull MapModel<G,A,R> mapModel)
Perform an "undo" action on a
MapModel . |
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)
MapModel
.undoModel
- the state to undomapModel
- the map model to affectpublic 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)
MapModel
.undoModel
- the state to redomapModel
- the map model to affect