|
||||||||||
| 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.boardgame.action.AbstractGridBoardAction
org.vizzini.game.boardgame.action.RemoveAction
public class RemoveAction
Provides an action for removal of a token from a grid board.
| Constructor Summary | |
|---|---|
protected |
RemoveAction(IGridBoard gridBoard,
IAgent agent,
IntegerPosition position)
Construct this object. |
| Method Summary | |
|---|---|
void |
clear()
Clear the properties of this object. |
boolean |
doIt()
Perform the command encapsulated by this object. |
boolean |
equals(Object object)
Return true if the given object is equal to this. |
static RemoveAction |
get(IGridBoard gridBoard,
IAgent agent,
IntegerPosition position)
Return an instance of this class using the given parameters. |
int |
hashCode()
Returns a hash code value for the object. |
static void |
poolReport()
Log a statistics report. |
void |
release()
Return this instance to the reusable object pool. |
protected void |
set(IGridBoard gridBoard,
IAgent agent,
IntegerPosition position)
Set parameters on this object. |
String |
toString()
Return a string representation of this object. |
boolean |
undoIt()
Undo the last invocation of doIt. |
| Methods inherited from class org.vizzini.game.boardgame.action.AbstractGridBoardAction |
|---|
getGridBoard, getToPosition, prettyPrint, setGridBoard, setToPosition |
| Methods inherited from class org.vizzini.game.action.AbstractAction |
|---|
compareTo, getAgent, getRating, setAgent, setRating |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface org.vizzini.game.action.IAction |
|---|
getAgent, getRating, setAgent, setRating |
| Methods inherited from interface java.lang.Comparable |
|---|
compareTo |
| Constructor Detail |
|---|
protected RemoveAction(IGridBoard gridBoard,
IAgent agent,
IntegerPosition position)
| Method Detail |
|---|
public static RemoveAction get(IGridBoard gridBoard,
IAgent agent,
IntegerPosition position)
public static void poolReport()
public void clear()
clear in interface IActionclear in class AbstractGridBoardActionpublic boolean doIt()
doIt in interface IActiondoIt in class AbstractActionpublic boolean equals(Object object)
equals in interface IActionequals in class AbstractGridBoardActionobject - The object to compare.public int hashCode()
hashCode in interface IActionhashCode in class AbstractGridBoardActionpublic void release()
release in interface IActionrelease in class AbstractActionpublic String toString()
toString in class AbstractActionpublic boolean undoIt()
undoIt in interface IActionundoIt in class AbstractAction
protected void set(IGridBoard gridBoard,
IAgent agent,
IntegerPosition position)
|
||||||||||
| 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 |