public static enum GameEvent.Type extends java.lang.Enum<GameEvent.Type>
GameManager
,
cvs GameEvent.javaEnum Constant and Description |
---|
AcceptAndWin
A Player has accepted the resign and won the game
|
Board
Board state
|
CantMove
Player can't move.
|
Double
someone has doubled
|
FirstMove
Someone makes the fist move
|
FirstRoll
One player has rolled die, and the other player the other die.
|
Move
Player has moved these pieces
|
PleaseAcceptOrRejectDouble
You should accept or reject the double
|
PleaseAcceptOrRejectResign
FIBS wants a decision
|
PleaseMove
You should please move your pieces.
|
PleaseRollOrDouble
You should roll or double.
|
RejectResign
A Player has rejected the resign offer
|
Resign
Someone wants to resign
|
Roll
Player has rolled these dice.
|
Modifier and Type | Method and Description |
---|---|
static GameEvent.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static GameEvent.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final GameEvent.Type Board
public static final GameEvent.Type Move
public static final GameEvent.Type Roll
public static final GameEvent.Type Double
public static final GameEvent.Type FirstRoll
public static final GameEvent.Type FirstMove
public static final GameEvent.Type CantMove
public static final GameEvent.Type PleaseRollOrDouble
public static final GameEvent.Type PleaseMove
public static final GameEvent.Type PleaseAcceptOrRejectDouble
public static final GameEvent.Type Resign
public static final GameEvent.Type PleaseAcceptOrRejectResign
public static final GameEvent.Type RejectResign
public static final GameEvent.Type AcceptAndWin
public static GameEvent.Type[] values()
for (GameEvent.Type c : GameEvent.Type.values()) System.out.println(c);
public static GameEvent.Type valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null