public class GameEventFirstMove extends GameEvent
GameManager
,
cvs GameEventFirstMove.javaGameEvent.Life, GameEvent.Type
playerName, who
Constructor and Description |
---|
GameEventFirstMove()
Default constructor
|
Modifier and Type | Method and Description |
---|---|
int[] |
getDice()
Return the two dice rolled in this event
|
GameEvent.Life |
getLife()
Get the Life type of this GameEvent
|
GameEvent.Type |
getType()
Get the Type of this GameEvent
|
void |
parse(java.lang.String s,
GameEventFirstRoll firstRoll,
Board board)
Parse either "
It's your turn to move. " or "dickbalaska makes the first move. "
along with the first dice. |
void |
setDice(int[] dice)
Set the dice to be used for this turn
|
java.lang.String |
toString()
A debug string of this object.
|
getDepth, getPlayerName, getWho, setPlayerName, setWho
public GameEvent.Type getType()
GameEvent
public GameEvent.Life getLife()
GameEvent
public int[] getDice()
public void setDice(int[] dice)
dice
- The dice (from the previous roll)public void parse(java.lang.String s, GameEventFirstRoll firstRoll, Board board)
It's your turn to move.
" or "dickbalaska makes the first move.
"
along with the first dice.s
- The FIBS string to parse.firstRoll
- The previous FirstRoll which contains his and her dice.board
- A board to match player names against.public java.lang.String toString()
toString
in class java.lang.Object
Please move {checkersToMove} pieces. Dice= {dice0}-{dice1}
"