|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--edu.rice.comp440.move.MovementFactory
Constructor Summary | |
MovementFactory()
|
Method Summary | |
protected static java.util.Collection |
generateMoves(Move base)
|
static Move[] |
getAllMoves(int player,
Dice dice,
Board board)
Returns all possible distinct moves for the given player given the starting board and the given dice roll. |
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. |
Methods inherited from class java.lang.Object |
clone,
equals,
finalize,
getClass,
hashCode,
notify,
notifyAll,
toString,
wait,
wait,
wait |
Constructor Detail |
public MovementFactory()
Method Detail |
public static boolean movePossible(int die, int player, Board board)
int
- die The dice rollplayer
- The playerboard
- The boardpublic static Move[] getAllMoves(int player, Dice dice, Board board)
player
- The player who is activedice
- The dice rollboard
- The current boardprotected static java.util.Collection generateMoves(Move base)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |