|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.vizzini.game.action.AbstractAction
org.vizzini.game.cardgame.DiscardAction
public class DiscardAction
Provides a discard action for card games in the game framework.
Constructor Summary | |
---|---|
DiscardAction()
|
Method Summary | |
---|---|
boolean |
doIt()
Perform the command encapsulated by this object. |
ICard |
getCard()
Return the card. |
void |
setCard(ICard card)
Set the card. |
String |
toString()
Return a string representation of 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 |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public DiscardAction()
Method Detail |
---|
public boolean doIt()
AbstractAction
doIt
in interface IAction
doIt
in class AbstractAction
public ICard getCard()
public void setCard(ICard card)
public String toString()
toString
in class AbstractAction
public boolean undoIt()
AbstractAction
undoIt
in interface IAction
undoIt
in class AbstractAction
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2007 Vizzini.org. All Rights Reserved. | 2007.12.25.03.00.02 |