org.vizzini.game.action
Class RedoAction

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

public class RedoAction
extends AbstractAction
implements IRedo

Provides an redo action in the game framework. A redo action instance signals the ActionManager to redo the last undone 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
RedoAction()
          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
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

RedoAction

public RedoAction()
Construct this object.

Since:
v0.2
Method Detail

doIt

public boolean doIt()
This implementation of doIt does not actually do anything. The logic for redo 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. Redo actions are not done. Instead an undo 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