Enum Class BodyPartType
- All Implemented Interfaces:
Serializable,Comparable<BodyPartType>,Constable
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic BodyPartTypeFromIndex(int index) static BodyPartTypeFromString(String str) getBiteWoundModel(boolean female) static floatgetBleedingTimeModifyer(int index) getCutWoundModel(boolean female) static floatgetDamageModifyer(int index) static Stringstatic floatGetDistToCore(BodyPartType bodyPartType) static floatGetMaxActionPenalty(BodyPartType bodyPartType) static floatGetMaxMovementPenalty(BodyPartType bodyPartType) static floatgetPainModifyer(int index) static BodyPartTypegetScratchWoundModel(boolean female) static floatGetSkinSurface(BodyPartType bodyPartType) static floatGetUmbrellaMod(BodyPartType bodyPartType) intindex()static intToIndex(BodyPartType BPT) static StringToString(BodyPartType BPT) static BodyPartTypeReturns the enum constant of this class with the specified name.static BodyPartType[]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
-
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 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
-
index
public int index() -
FromString
-
getPainModifyer
public static float getPainModifyer(int index) -
getDisplayName
-
ToIndex
-
ToString
-
getDamageModifyer
public static float getDamageModifyer(int index) -
getBleedingTimeModifyer
public static float getBleedingTimeModifyer(int index) -
GetSkinSurface
-
GetDistToCore
-
GetUmbrellaMod
-
GetMaxActionPenalty
-
GetMaxMovementPenalty
-
getBandageModel
-
getBiteWoundModel
-
getScratchWoundModel
-
getCutWoundModel
-
getRandom
-