zombie.characters.BodyDamage
Enum BodyPartType
java.lang.Object
java.lang.Enum<BodyPartType>
zombie.characters.BodyDamage.BodyPartType
- All Implemented Interfaces:
- java.io.Serializable, java.lang.Comparable<BodyPartType>
public enum BodyPartType
- extends java.lang.Enum<BodyPartType>
- 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 |
Hand_L
public static final BodyPartType Hand_L
Hand_R
public static final BodyPartType Hand_R
ForeArm_L
public static final BodyPartType ForeArm_L
ForeArm_R
public static final BodyPartType ForeArm_R
UpperArm_L
public static final BodyPartType UpperArm_L
UpperArm_R
public static final BodyPartType UpperArm_R
Torso_Upper
public static final BodyPartType Torso_Upper
Torso_Lower
public static final BodyPartType Torso_Lower
Head
public static final BodyPartType Head
Neck
public static final BodyPartType Neck
Groin
public static final BodyPartType Groin
UpperLeg_L
public static final BodyPartType UpperLeg_L
UpperLeg_R
public static final BodyPartType UpperLeg_R
LowerLeg_L
public static final BodyPartType LowerLeg_L
LowerLeg_R
public static final BodyPartType LowerLeg_R
Foot_L
public static final BodyPartType Foot_L
Foot_R
public static final BodyPartType Foot_R
MAX
public static final BodyPartType MAX
values
public static BodyPartType[] 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 (BodyPartType c : BodyPartType.values())
System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in
the order they are declared
valueOf
public static BodyPartType 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 BodyPartType FromIndex(int index)
FromString
public static BodyPartType FromString(java.lang.String str)
getDamageModifyer
public static float getDamageModifyer(int index)
getDisplayName
public static java.lang.String getDisplayName(BodyPartType BPT)
ToIndex
public static int ToIndex(BodyPartType BPT)
ToString
public static java.lang.String ToString(BodyPartType BPT)