|
||||||||||
| 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 IActionclear in class AbstractGridBoardActionpublic int compareTo(Object object)
compareTo in interface ComparablecompareTo in class AbstractActionClassCastException - if another is not an instance of
AbstractMoveAction.public boolean equals(Object object)
equals in interface IActionequals in class AbstractGridBoardActionobject - The object to compare.public IntegerPosition getFromPosition()
getFromPosition in interface IMoveActionpublic int hashCode()
hashCode in interface IActionhashCode in class AbstractGridBoardActionpublic String prettyPrint()
prettyPrint in interface IActionprettyPrint in class AbstractGridBoardActionprotected 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 |