Enum Class Alignment
- All Implemented Interfaces:
Serializable
,Comparable<Alignment>
,Constable
Indicates how drunk you are, or how thirsty.
- Author:
- maartenl
-
Nested Class Summary
Nested classes/interfaces inherited from class Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionstatic Alignment
getAlignment
(Integer alignment) Returns the thirstiness of the character.Returns the description of this enum.int
Returns the integer indicating the alignment.static Integer
max()
static Integer
min()
static Alignment
Returns the enum constant of this class with the specified name.static Alignment[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EVIL
-
BAD
-
MEAN
-
UNTRUSTWORTHY
-
NEUTRAL
-
TRUSTWORTHY
-
KIND
-
AWFULLY_GOOD
-
GOOD
-
-
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
-
getAlignment
Returns the thirstiness of the character. Must be a number between -5999 and 5999, where -5999..-5000 is out of your skull on alcohol and 5000..5999 is no longer able to drink.- Returns:
- Alignment enum.
- Throws:
RuntimeException
- if the movement is not allowedNullPointerException
- if movement not provided
-
getDescription
-
getOrdinalValue
public int getOrdinalValue()Returns the integer indicating the alignment.- Returns:
- integer
-