public class GameEventDouble extends GameEvent
GameManager,
cvs GameEventDouble.javaGameEvent.Life, GameEvent.Type| Modifier and Type | Field and Description |
|---|---|
protected int |
whoDoubled |
playerName, who| Constructor and Description |
|---|
GameEventDouble() |
| Modifier and Type | Method and Description |
|---|---|
int |
getCubeAfter()
Get the value of the cube after the double
|
int |
getCubeBefore()
Get the value of the cube before the double
|
GameEvent.Life |
getLife()
Get the Life type of this GameEvent
|
GameEvent.Type |
getType()
Get the Type of this GameEvent
|
int |
getWhoDoubled()
|
void |
parse(java.lang.String unused)
A dummy parser.
|
void |
parse(java.lang.String s,
Board b)
Parse the string that created this GameEvent.
|
void |
setCubeBefore(int cubeBefore)
Set the current value of cube as well as the derived, next value of the cube (if accepted).
|
getDepth, getPlayerName, getWho, setPlayerName, setWhopublic GameEvent.Type getType()
GameEventpublic GameEvent.Life getLife()
GameEventpublic int getWhoDoubled()
public void parse(java.lang.String unused)
unused - public int getCubeBefore()
public void setCubeBefore(int cubeBefore)
cubeBefore - the value of the cube (from the last board) to setpublic int getCubeAfter()
public void parse(java.lang.String s,
Board b)
dickbalaska doubles.s - The FIBS stringb - The Board prior to this double (used to determine which player is doubling)