Package 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>
,java.lang.constant.Constable
public enum BodyPartType extends java.lang.Enum<BodyPartType>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
java.lang.Enum.EnumDesc<E extends java.lang.Enum<E>>
-
Enum Constant Summary
Enum Constants Enum Constant Description 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
Modifier and Type Method Description static BodyPartType
FromIndex(int int1)
static BodyPartType
FromString(java.lang.String string)
static float
getDamageModifyer(int int1)
static java.lang.String
getDisplayName(BodyPartType bodyPartType)
static float
getPainModifyer(int int1)
static int
ToIndex(BodyPartType bodyPartType)
static java.lang.String
ToString(BodyPartType bodyPartType)
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
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
-
Enum Constant Details
-
Hand_L
-
Hand_R
-
ForeArm_L
-
ForeArm_R
-
UpperArm_L
-
UpperArm_R
-
Torso_Upper
-
Torso_Lower
-
Head
-
Neck
-
Groin
-
UpperLeg_L
-
UpperLeg_R
-
LowerLeg_L
-
LowerLeg_R
-
Foot_L
-
Foot_R
-
MAX
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 namejava.lang.NullPointerException
- if the argument is null
-
FromIndex
-
FromString
-
getPainModifyer
public static float getPainModifyer(int int1) -
getDisplayName
-
ToIndex
-
ToString
-
getDamageModifyer
public static float getDamageModifyer(int int1)
-