public static enum AnimateEvent.Type extends java.lang.Enum<AnimateEvent.Type>
GameManager
,
cvs GameEvent.javaEnum Constant and Description |
---|
AcceptAndWin
Player accepted the resign offer
|
Board
Board state.
|
CantMove
Player can't move based on the last roll of the dice
|
Double
You Double
|
FirstRoll
First roll of the game
|
Move
Move these pieces to their new positions
|
PleaseAcceptOrRejectDouble
GUI should ask the player to accept or reject the double
|
PleaseAcceptOrRejectResign
GUI should ask the player to accept or reject the resign
|
PleaseMove
GUI should ask the player to move n number of pieces
|
PleaseRollOrDouble
GUI should ask the player to either Roll or Double
|
RejectResign
Player rejected the resign offer
|
Resign
Player wants to resign
|
Roll
Player rolled these dice
|
Modifier and Type | Method and Description |
---|---|
static AnimateEvent.Type |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static AnimateEvent.Type[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final AnimateEvent.Type Board
public static final AnimateEvent.Type Move
public static final AnimateEvent.Type Roll
public static final AnimateEvent.Type CantMove
public static final AnimateEvent.Type Resign
public static final AnimateEvent.Type PleaseRollOrDouble
public static final AnimateEvent.Type PleaseMove
public static final AnimateEvent.Type Double
public static final AnimateEvent.Type PleaseAcceptOrRejectDouble
public static final AnimateEvent.Type PleaseAcceptOrRejectResign
public static final AnimateEvent.Type RejectResign
public static final AnimateEvent.Type AcceptAndWin
public static final AnimateEvent.Type FirstRoll
public static AnimateEvent.Type[] values()
for (AnimateEvent.Type c : AnimateEvent.Type.values()) System.out.println(c);
public static AnimateEvent.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