@Deprecated
public class UndoRedoHistory
extends java.lang.Object
Constructor and Description |
---|
UndoRedoHistory()
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
boolean |
addEvent(Event<?> arg)
Deprecated.
This method deals with events and does appropriate things with the stacks.
|
boolean |
canRedo()
Deprecated.
|
boolean |
canUndo()
Deprecated.
|
void |
clearHistory()
Deprecated.
|
boolean |
forceRedo(PuzzleInstance game)
Deprecated.
Allow redoing even if the undo stack is empty above the undoStackBottom.
|
Event<?> |
getTopOfRedoStack()
Deprecated.
|
Event<?> |
getTopOfUndoStack()
Deprecated.
|
boolean |
redo(PuzzleInstance game)
Deprecated.
Redo the top move on the undo stack, remove it and place it on
the move stack (so it can be undone).
|
boolean |
takeBack(PuzzleInstance game)
Deprecated.
Take back the last move.
|
boolean |
takeBackRedo(PuzzleInstance game)
Deprecated.
Undo + takeback.
|
boolean |
takebackUndo(PuzzleInstance game)
Deprecated.
|
boolean |
undo(PuzzleInstance game)
Deprecated.
Undo the last performed move.
|
int |
undoRedoSize()
Deprecated.
|
int |
undoStackSize()
Deprecated.
|
public boolean addEvent(Event<?> arg)
o
- arg
- public boolean undo(PuzzleInstance game)
game
- public boolean takeBackRedo(PuzzleInstance game)
game
- public boolean takebackUndo(PuzzleInstance game)
public boolean redo(PuzzleInstance game)
game
- public boolean forceRedo(PuzzleInstance game)
public boolean takeBack(PuzzleInstance game)
game
- public void clearHistory()
public Event<?> getTopOfUndoStack()
public Event<?> getTopOfRedoStack()
public boolean canRedo()
public boolean canUndo()
public int undoStackSize()
public int undoRedoSize()