public class GameEventPleaseMove extends GameEvent
GameManager,
cvs GameEventPleaseMove.javaGameEvent.Life, GameEvent.TypeplayerName, who| Constructor and Description |
|---|
GameEventPleaseMove()
Default constructor
|
| Modifier and Type | Method and Description |
|---|---|
int |
getCheckersToMove()
How many checkers should You move this turn?
|
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)
Parse the number of pieces to move.
|
void |
setCheckersToMove(int checkersToMove)
Set the number of checkers that will be moved this turn.
|
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 getCheckersToMove()
public void setCheckersToMove(int checkersToMove)
checkersToMove - The number of checkers.public int[] getDice()
public void setDice(int[] dice)
dice - The dice (from the previous roll)public void parse(java.lang.String s)
Please move 2 pieces."s - The string from fibs.public java.lang.String toString()
toString in class java.lang.ObjectPlease move {checkersToMove} pieces. Dice= {dice0}-{dice1}"