Enum Class MoodleType
- All Implemented Interfaces:
Serializable,Comparable<MoodleType>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final int -
Method Summary
Modifier and TypeMethodDescriptionstatic MoodleTypeFromIndex(int index) static MoodleTypeFromString(String str) static StringgetDescriptionText(MoodleType MT, int Level) static StringgetDisplayName(MoodleType MT, int Level) static intstatic intToIndex(MoodleType MT) static MoodleTypeReturns the enum constant of this class with the specified name.static MoodleType[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
compareTo, describeConstable, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
-
Enum Constant Details
-
Endurance
-
Tired
-
Hungry
-
Panic
-
Sick
-
Bored
-
Unhappy
-
Bleeding
-
Wet
-
HasACold
-
Angry
-
Stress
-
Thirst
-
Injured
-
Pain
-
HeavyLoad
-
Drunk
-
Dead
-
Zombie
-
Hyperthermia
-
Hypothermia
-
Windchill
-
CantSprint
-
Uncomfortable
-
NoxiousSmell
-
FoodEaten
-
MAX
-
-
Field Details
-
NeutralMoodleType
public static final int NeutralMoodleType- See Also:
-
GoodMoodleType
public static final int GoodMoodleType- See Also:
-
BadMoodleType
public static final int BadMoodleType- See Also:
-
-
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
-
FromIndex
-
FromString
-
getDisplayName
-
getDescriptionText
-
GoodBadNeutral
-
ToIndex
-