public class BearOffMovement extends Movement
| Modifier and Type | Field and Description | 
|---|---|
protected int | 
start  | 
| Constructor and Description | 
|---|
BearOffMovement(int player,
               int start)
Constructor, taking the player, the start location 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
apply(Board board)
Validates this movement given the provided
 board situation. 
 | 
boolean | 
canUse(Board board,
      int die)
Returns whether or not this movement can use the given
 dice roll to perfrom it's movement 
 | 
boolean | 
equals(java.lang.Object o)
Returns whether not this movement equals the object 
 | 
int | 
getStart()
Returns the starting location movement 
 | 
static boolean | 
movePossible(int die,
            int player,
            Board board)
Return whether or not a move is possible using 
 the given dice roll by the given player in the given board. 
 | 
java.lang.String | 
toString()
Returns a String representation of this move 
 | 
public BearOffMovement(int player,
               int start)
player - The player making the movementstart - The start locationend - The end locationpublic int getStart()
public static boolean movePossible(int die,
                   int player,
                   Board board)
int - die The dice rollplayer - The playerboard - The boardpublic boolean canUse(Board board, int die)
public void apply(Board board) throws IllegalMoveException
apply in class Movementboard - The current setupIllegalMoveExceptionpublic boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object