Enum Class Movement
- All Implemented Interfaces:
Serializable
,Comparable<Movement>
,Constable
Indicates how tired you are. Indicates the manner of movement possible.
- Author:
- maartenl
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionReturns the description of this enum.static Movement
getMovement
(Integer movement) Returns the movement of the character.int
Returns the integer indicating the movement.static Integer
max()
static Integer
min()
static Movement
Returns the enum constant of this class with the specified name.static Movement[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FULLY_EXHAUSTED
-
ALMOST_EXHAUSTED
-
VERY_TIRED
-
SLIGHTLY_TIRED
-
SLIGHTLY_FATIGUED
-
NOT_TIRED_AT_ALL
-
-
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
-
min
-
max
-
getMovement
-
getDescription
Returns the description of this enum.- Returns:
- for example "not tired at all"
-
getOrdinalValue
public int getOrdinalValue()Returns the integer indicating the movement.- Returns:
- integer
-