public class GameEventMove extends GameEvent
GameManager,
cvs GameEventMove.javaGameEvent.Life, GameEvent.TypeplayerName, who| Constructor and Description |
|---|
GameEventMove() |
| Modifier and Type | Method and Description |
|---|---|
int |
getDirection() |
GameEvent.Life |
getLife()
Get the Life type of this GameEvent
|
int[] |
getMoves()
Get an array of ints that represents this turn's dice moves.
|
GameEvent.Type |
getType()
Get the Type of this GameEvent
|
void |
parse(java.lang.String s)
Parse one of the move strings.
|
void |
parseBearingOff(java.lang.String s)
Parse a move that comes in different.
|
void |
setDirection(int direction) |
java.lang.String |
toString() |
getDepth, getPlayerName, getWho, setPlayerName, setWhopublic GameEvent.Type getType()
GameEventpublic GameEvent.Life getLife()
GameEventpublic int[] getMoves()
public int getDirection()
public void setDirection(int direction)
direction - the direction to setpublic void parse(java.lang.String s)
lollilalla moves 1-7 7-9 . The only possible move is 5-off 5-off 5-off 4-off . mpopj can't move. BlunderBot_IV moves 24-off 24-off 24-off ' (note: last move of game has no period)jcapell moves 1-off .s - The fibs string.public void parseBearingOff(java.lang.String s)
s - 'Bearing off: 6 o 2 o 'public java.lang.String toString()
toString in class java.lang.Object