public abstract class Movement
extends java.lang.Object
| Modifier and Type | Field and Description | 
|---|---|
protected int | 
player  | 
| Constructor and Description | 
|---|
Movement(int player)
Constructor, taking the player 
 | 
| Modifier and Type | Method and Description | 
|---|---|
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 
 | 
public Movement(int player)
player - The playerpublic int getPlayer()
public abstract void apply(Board board) throws IllegalMoveException
board - The current setupIllegalMoveExceptionpublic abstract boolean canUse(Board board, int die)
die - The dice roll