zombie.characters.Moodles
Enum MoodleType
java.lang.Object
java.lang.Enum<MoodleType>
zombie.characters.Moodles.MoodleType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<MoodleType>
public enum MoodleType
- extends java.lang.Enum<MoodleType>
- Author:
- Nick
Methods inherited from class java.lang.Enum |
compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf |
Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
Endurance
public static final MoodleType Endurance
Tired
public static final MoodleType Tired
Hungry
public static final MoodleType Hungry
Panic
public static final MoodleType Panic
Sick
public static final MoodleType Sick
Bored
public static final MoodleType Bored
Unhappy
public static final MoodleType Unhappy
Bleeding
public static final MoodleType Bleeding
Wet
public static final MoodleType Wet
HasACold
public static final MoodleType HasACold
Angry
public static final MoodleType Angry
Stress
public static final MoodleType Stress
Thirst
public static final MoodleType Thirst
Injured
public static final MoodleType Injured
Pain
public static final MoodleType Pain
HeavyLoad
public static final MoodleType HeavyLoad
Drunk
public static final MoodleType Drunk
Dead
public static final MoodleType Dead
Zombie
public static final MoodleType Zombie
Hyperthermia
public static final MoodleType Hyperthermia
Hypothermia
public static final MoodleType Hypothermia
FoodEaten
public static final MoodleType FoodEaten
MAX
public static final MoodleType MAX
values
public static MoodleType[] values()
- Returns an array containing the constants of this enum type, in
the order they are declared. This method may be used to iterate
over the constants as follows:
for (MoodleType c : MoodleType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static MoodleType valueOf(java.lang.String name)
- Returns the enum constant of this type with the specified name.
The string must match exactly an identifier used to declare an
enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant
with the specified name
java.lang.NullPointerException
- if the argument is null
FromIndex
public static MoodleType FromIndex(int index)
FromString
public static MoodleType FromString(java.lang.String str)
getDisplayName
public static java.lang.String getDisplayName(MoodleType MT,
int Level)
getDescriptionText
public static java.lang.String getDescriptionText(MoodleType MT,
int Level)
GoodBadNeutral
public static int GoodBadNeutral(MoodleType MT)
ToIndex
public static int ToIndex(MoodleType MT)