org.vizzini.game.cardgame
Class TakeDiscardAction

java.lang.Object
  extended by org.vizzini.game.action.AbstractAction
      extended by org.vizzini.game.cardgame.TakeDiscardAction
All Implemented Interfaces:
Serializable, Comparable, IAction

public class TakeDiscardAction
extends AbstractAction

Provides a discard action for card games in the game framework.

Since:
v0.1
Version:
v0.2
Author:
Jeffrey M. Thompson
See Also:
Serialized Form

Constructor Summary
TakeDiscardAction()
           
 
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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

TakeDiscardAction

public TakeDiscardAction()
Method Detail

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