public class GameEventFirstMove extends GameEvent
GameManager,
cvs GameEventFirstMove.javaGameEvent.Life, GameEvent.TypeplayerName, 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, setWhopublic GameEvent.Type getType()
GameEventpublic GameEvent.Life getLife()
GameEventpublic 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.ObjectPlease move {checkersToMove} pieces. Dice= {dice0}-{dice1}"