|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.rice.comp440.move.Movement
Field Summary | |
protected int |
player
|
Constructor Summary | |
Movement(int player)
Constructor, taking the player |
Method Summary | |
abstract void |
apply(Board board)
Validates this movement given the provided board situation. |
abstract boolean |
canUse(Board board,
int die)
Returns whether or not this movement can use the given dice roll to perfrom it's movement |
int |
getPlayer()
Returns the player making this movement |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Field Detail |
protected int player
Constructor Detail |
public Movement(int player)
player
- The playerMethod Detail |
public int getPlayer()
public abstract void apply(Board board) throws IllegalMoveException
board
- The current setuppublic abstract boolean canUse(Board board, int die)
die
- The dice roll
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |