public enum FinishedReason extends Enum<FinishedReason>
FinishedReason
is an enumeration type that defines the reason the game is finished.
The FinishedReason
is implemented as it is defined in the interface document v1.0.Enum Constant and Description |
---|
ABORTED
The
ABORTED case is used, if the host stopped the game. |
DEFAULT
The
DEFAULT case is used, if there is no better FinishedReason than this one. |
EVERYBODY_DIED
The
EVERYBODY_DIED case is used, if all the remaining player on the board die at once. |
LAST_ONE_STANDING
The
LAST_ONE_STANDING case is used, if the player is the last one standing. |
Modifier and Type | Method and Description |
---|---|
static FinishedReason |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static FinishedReason[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final FinishedReason DEFAULT
DEFAULT
case is used, if there is no better FinishedReason
than this one.public static final FinishedReason LAST_ONE_STANDING
LAST_ONE_STANDING
case is used, if the player is the last one standing.public static final FinishedReason EVERYBODY_DIED
EVERYBODY_DIED
case is used, if all the remaining player on the board die at once.public static final FinishedReason ABORTED
ABORTED
case is used, if the host stopped the game.public static FinishedReason[] values()
for (FinishedReason c : FinishedReason.values()) System.out.println(c);
public static FinishedReason valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullCopyright © 2017 smarTen. All rights reserved.