Enum Class Split.Type
- All Implemented Interfaces:
Serializable, Comparable<Split.Type>, Constable
- Enclosing class:
Split
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptiononly possible on prisononly possible on prison -
Method Summary
Modifier and TypeMethodDescriptionbooleanisEnd()any game end typebooleanisStart()any start typebooleanisWin()win or escapestatic Split.TypeReturns the enum constant of this class with the specified name.static Split.Type[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
START
-
START_MIDGAME
-
ROUND
-
HELICOPTER_CALL
only possible on prison -
LOSS
-
WIN
-
ESCAPE
only possible on prison
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-
isWin
public boolean isWin()win or escape -
isStart
public boolean isStart()any start type -
isEnd
public boolean isEnd()any game end type
-