Enum Class DetonationResult
- All Implemented Interfaces:
Serializable
,Comparable<DetonationResult>
,Constable
This
enum
type is generated from XML,
UID 62,
marshal size 8;
DetonationResult has 34 enumerations total.- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAir BurstAir hitArmor-piercing hitBuilding hit, largeBuilding hit, mediumBuilding hit, smallDetonationDirt blast, largeDirt blast, mediumDirt blast, smallEntity ImpactEntity Proximate DetonationEnvironment object impactEnvironment object proximate detonationGround ImpactGround Proximate DetonationHE hit, largeHE hit, mediumHE hit, smallKill with fragment type 3Kill with fragment type 1Kill with fragment type 1 after fly-out failureKill with fragment type 2Mine-clearing line chargeMiss due to end-game failureMiss due to fly-out and end-game failureMiss due to fly-out failureNone or No Detonation (Dud)OtherKill with fragment type 2 after fly-out failureWater blast, largeWater blast, mediumWater blast, smallWater Impact -
Method Summary
Modifier and TypeMethodDescriptionProvide enumeration descriptionstatic int
bit width for this enumerationstatic DetonationResult
getEnumForValue
(int value) Provide enumeration for a given valueint
Returns size of this serialized (marshalled) object in bytesgetName()
Provide nameboolean
getTRACE()
Whether tracing is on or off for this objectint
getValue()
Provide enumeration valuevoid
marshal
(DataOutputStream dos) Marshal value to DataOutputStreamvoid
marshal
(ByteBuffer byteBuffer) Marshal value to ByteBuffervoid
setTRACE
(boolean value) Set tracing on/off for this objecttoString()
Provide simple identifierstatic DetonationResult
Unmarshal value to DataInputStreamstatic DetonationResult
unmarshalEnum
(ByteBuffer byteBuffer) Unmarshal enumeration value to ByteBufferstatic DetonationResult
Returns the enum constant of this class with the specified name.static DetonationResult[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
OTHER
Other -
ENTITY_IMPACT
Entity Impact -
ENTITY_PROXIMATE_DETONATION
Entity Proximate Detonation -
GROUND_IMPACT
Ground Impact -
GROUND_PROXIMATE_DETONATION
Ground Proximate Detonation -
DETONATION
Detonation -
NONE_OR_NO_DETONATION_DUD
None or No Detonation (Dud) -
HE_HIT_SMALL
HE hit, small -
HE_HIT_MEDIUM
HE hit, medium -
HE_HIT_LARGE
HE hit, large -
ARMOR_PIERCING_HIT
Armor-piercing hit -
DIRT_BLAST_SMALL
Dirt blast, small -
DIRT_BLAST_MEDIUM
Dirt blast, medium -
DIRT_BLAST_LARGE
Dirt blast, large -
WATER_BLAST_SMALL
Water blast, small -
WATER_BLAST_MEDIUM
Water blast, medium -
WATER_BLAST_LARGE
Water blast, large -
AIR_HIT
Air hit -
BUILDING_HIT_SMALL
Building hit, small -
BUILDING_HIT_MEDIUM
Building hit, medium -
BUILDING_HIT_LARGE
Building hit, large -
MINE_CLEARING_LINE_CHARGE
Mine-clearing line charge -
ENVIRONMENT_OBJECT_IMPACT
Environment object impact -
ENVIRONMENT_OBJECT_PROXIMATE_DETONATION
Environment object proximate detonation -
WATER_IMPACT
Water Impact -
AIR_BURST
Air Burst -
KILL_WITH_FRAGMENT_TYPE_1
Kill with fragment type 1 -
KILL_WITH_FRAGMENT_TYPE_2
Kill with fragment type 2 -
IDENTIFICATION_FRIEND_OR_FOE
Kill with fragment type 3 -
KILL_WITH_FRAGMENT_TYPE_1_AFTER_FLY_OUT_FAILURE
Kill with fragment type 1 after fly-out failure -
SUPPLEMENTAL_EMISSION_ENTITY_STATE
Kill with fragment type 2 after fly-out failure -
MISS_DUE_TO_FLY_OUT_FAILURE
Miss due to fly-out failure -
MISS_DUE_TO_END_GAME_FAILURE
Miss due to end-game failure -
MISS_DUE_TO_FLY_OUT_AND_END_GAME_FAILURE
Miss due to fly-out and end-game failure
-
-
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
-
getValue
public int getValue()Provide enumeration value- Returns:
- integer value
-
getDescription
-
getEnumBitWidth
public static int getEnumBitWidth()bit width for this enumeration- Returns:
- number of bits wide
-
getEnumForValue
Provide enumeration for a given value- Parameters:
value
- integer value of interest- Returns:
- enumeration corresponding to numeric value
-
setTRACE
public void setTRACE(boolean value) Set tracing on/off for this object- Parameters:
value
- whether tracing is on or off
-
getTRACE
public boolean getTRACE()Whether tracing is on or off for this object- Returns:
- whether tracing is on or off
-
marshal
Marshal value to DataOutputStream- Parameters:
dos
- DataOutputStream for output- Throws:
IOException
- input-output error- See Also:
-
marshal
Marshal value to ByteBuffer- Parameters:
byteBuffer
- ByteBuffer for output- Throws:
IOException
- input-output errorException
- See Also:
-
unmarshalEnum
Unmarshal value to DataInputStream- Parameters:
dis
- DataInputStream for input- Returns:
- enumeration of interest
- Throws:
Exception
- unmarshalling input-output error- See Also:
-
unmarshalEnum
Unmarshal enumeration value to ByteBuffer- Parameters:
byteBuffer
- ByteBuffer for input- Returns:
- enumeration of interest
- Throws:
Exception
- unmarshalling input-output error- See Also:
-
getMarshalledSize
public int getMarshalledSize()Returns size of this serialized (marshalled) object in bytes- Returns:
- serialized size in bytes
- See Also:
-
getName
-
toString
Provide simple identifier- Overrides:
toString
in classEnum<DetonationResult>
- Returns:
- class name, value and name
-