|
||||||||||
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.AbstractMoveAction
public abstract class AbstractMoveAction
Provides base functionality for move actions in the game framework.
Constructor Summary | |
---|---|
protected |
AbstractMoveAction(IGridBoard gridBoard,
IAgent agent,
IntegerPosition fromPosition)
Construct this object. |
Method Summary | |
---|---|
void |
clear()
Clear the properties of this object. |
int |
compareTo(Object object)
Compare this to the given object. |
boolean |
equals(Object object)
Return true if the given object is equal to this. |
IntegerPosition |
getFromPosition()
|
int |
hashCode()
Returns a hash code value for the object. |
String |
prettyPrint()
Provide a nicely formatted string representation of this object. |
protected void |
setFromPosition(IntegerPosition position)
Set the from position. |
Methods inherited from class org.vizzini.game.boardgame.action.AbstractGridBoardAction |
---|
getGridBoard, getToPosition, setGridBoard, setToPosition |
Methods inherited from class org.vizzini.game.action.AbstractAction |
---|
doIt, getAgent, getRating, release, setAgent, setRating, toString, undoIt |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.vizzini.game.boardgame.action.IGridBoardAction |
---|
getGridBoard, getToPosition |
Methods inherited from interface org.vizzini.game.action.IAction |
---|
doIt, getAgent, getRating, release, setAgent, setRating, undoIt |
Constructor Detail |
---|
protected AbstractMoveAction(IGridBoard gridBoard, IAgent agent, IntegerPosition fromPosition)
Method Detail |
---|
public void clear()
clear
in interface IAction
clear
in class AbstractGridBoardAction
public int compareTo(Object object)
compareTo
in interface Comparable
compareTo
in class AbstractAction
ClassCastException
- if another is not an instance of
AbstractMoveAction
.public boolean equals(Object object)
equals
in interface IAction
equals
in class AbstractGridBoardAction
object
- The object to compare.public IntegerPosition getFromPosition()
getFromPosition
in interface IMoveAction
public int hashCode()
hashCode
in interface IAction
hashCode
in class AbstractGridBoardAction
public String prettyPrint()
prettyPrint
in interface IAction
prettyPrint
in class AbstractGridBoardAction
protected void setFromPosition(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 |