|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcheckers.model.Move
public class Move
An object representation of a move.
Constructor Summary | |
---|---|
Move(int startLoc,
int endLoc)
Create a move with the starting location and ending location passed in as paremeters. |
Method Summary | |
---|---|
int |
endLocation()
Return the ending location of this move. |
int |
getJumpIndex()
If the move is a jump, returns the index of the jumped piece. |
boolean |
isJump()
Returns true if the move is a jump. |
int |
startLocation()
Return the starting location of this move. |
java.lang.String |
toString()
String representation of move |
boolean |
validate()
Returns true if the move is valid. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Move(int startLoc, int endLoc)
startLoc
- The starting point of the moveendLoc
- The ending point of the moveMethod Detail |
---|
public int startLocation()
public int endLocation()
public boolean validate()
public boolean isJump()
public int getJumpIndex()
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |