zombie.characters.BodyDamage
Enum BodyPartType

java.lang.Object
  extended by java.lang.Enum<BodyPartType>
      extended by zombie.characters.BodyDamage.BodyPartType
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable<BodyPartType>

public enum BodyPartType
extends java.lang.Enum<BodyPartType>

Author:
Nick

Enum Constant Summary
Foot_L
           
Foot_R
           
ForeArm_L
           
ForeArm_R
           
Groin
           
Hand_L
           
Hand_R
           
Head
           
LowerLeg_L
           
LowerLeg_R
           
MAX
           
Neck
           
Torso_Lower
           
Torso_Upper
           
UpperArm_L
           
UpperArm_R
           
UpperLeg_L
           
UpperLeg_R
           
 
Method Summary
static BodyPartType FromIndex(int index)
           
static BodyPartType FromString(java.lang.String str)
           
static float getDamageModifyer(int index)
           
static java.lang.String getDisplayName(BodyPartType BPT)
           
static int ToIndex(BodyPartType BPT)
           
static java.lang.String ToString(BodyPartType BPT)
           
static BodyPartType valueOf(java.lang.String name)
          Returns the enum constant of this type with the specified name.
static BodyPartType[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
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
 

Enum Constant Detail

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
Method Detail

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)