org.vizzini.game.cardgame
Class DrawAction
java.lang.Object
org.vizzini.game.action.AbstractAction
org.vizzini.game.cardgame.DrawAction
- All Implemented Interfaces:
- Serializable, Comparable, IAction
public class DrawAction
- extends AbstractAction
Provides a draw action for card games in the game framework.
- Since:
- v0.1
- Version:
- v0.2
- Author:
- Jeffrey M. Thompson
- See Also:
- Serialized Form
Method Summary |
boolean |
doIt()
Perform the command encapsulated by this object. |
boolean |
undoIt()
Undo the last invocation of doIt. |
Methods inherited from class org.vizzini.game.action.AbstractAction |
clear, compareTo, equals, getAgent, getRating, hashCode, prettyPrint, release, setAgent, setRating, toString |
DrawAction
public DrawAction()
doIt
public boolean doIt()
- Description copied from class:
AbstractAction
- Perform the command encapsulated by this object. This method does
nothing, and returns false.
- Specified by:
doIt
in interface IAction
- Overrides:
doIt
in class AbstractAction
- Returns:
- true if successful and can be undone.
undoIt
public boolean undoIt()
- Description copied from class:
AbstractAction
- Undo the last invocation of doIt. This method does nothing, and returns
false.
- Specified by:
undoIt
in interface IAction
- Overrides:
undoIt
in class AbstractAction
- Returns:
- true if the undo was successful.
Copyright © 2007 Vizzini.org. All Rights Reserved.
|
2007.12.25.03.00.02 |