org.vizzini.game.action
Class UndoAction
java.lang.Object
org.vizzini.game.action.AbstractAction
org.vizzini.game.action.UndoAction
- All Implemented Interfaces:
- Serializable, Comparable, IAction, IUndo
public class UndoAction
- extends AbstractAction
- implements IUndo
Provides an undo action in the game framework. An undo action instance
signals the ActionManager to undo the last action.
This class participates in the Command pattern as described in Pattern In
Java Volume 1, Mark Grand, 1998.
- Since:
- v0.2
- Version:
- v0.2
- Author:
- Jeffrey M. Thompson
- See Also:
- Serialized Form
Constructor Summary |
UndoAction()
Construct this object. |
Method Summary |
boolean |
doIt()
This implementation of doIt does not actually do anything. |
boolean |
undoIt()
This implementation of undoIt does not actually do anything. |
Methods inherited from class org.vizzini.game.action.AbstractAction |
clear, compareTo, equals, getAgent, getRating, hashCode, prettyPrint, release, setAgent, setRating, toString |
UndoAction
public UndoAction()
- Construct this object.
- Since:
- v0.2
doIt
public boolean doIt()
- This implementation of doIt does not actually do anything. The logic for
undo is in the ActionManager class.
- Specified by:
doIt
in interface IAction
- Overrides:
doIt
in class AbstractAction
- Returns:
- true if successful and can be undone.
- Since:
- v0.2
undoIt
public boolean undoIt()
- This implementation of undoIt does not actually do anything. Undo actions
are not undone. Instead a redo action is issued.
- Specified by:
undoIt
in interface IAction
- Overrides:
undoIt
in class AbstractAction
- Returns:
- true if the undo was successful.
- Since:
- v0.2
Copyright © 2007 Vizzini.org. All Rights Reserved.
|
2007.12.25.03.00.02 |