Package megamek.common.equipment
Enum Class ICarryable.CarriedObjectDamageAllocation
java.lang.Object
java.lang.Enum<ICarryable.CarriedObjectDamageAllocation>
megamek.common.equipment.ICarryable.CarriedObjectDamageAllocation
- All Implemented Interfaces:
Serializable,Comparable<ICarryable.CarriedObjectDamageAllocation>,Constable
- Enclosing interface:
- ICarryable
public static enum ICarryable.CarriedObjectDamageAllocation
extends Enum<ICarryable.CarriedObjectDamageAllocation>
Despite being carried by a unit in the same manner, the type of object impacts when it should be damaged if a
carried object's carrier is attacked.
- Cargo (TW 261) always has a chance to get damaged when the carrier is hit
- Handheld Weapons (TO:AUE 128) and Battle Armor (TO:AR 96) have a chance to be hit when the carrier is hit in
the arms
- Vehicles (TO:AR 95) follow the Grappling rules (TO:AR 88): If the attack misses, make another attack
against the other unit (NOT IMPLEMENTED)
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanbooleanReturns the enum constant of this class with the specified name.values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ANY_HIT
-
ARM_HIT
-
ON_MISS
-
NEVER
-
-
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
-
isCarryableAlwaysDamaged
public boolean isCarryableAlwaysDamaged() -
isCarryableDamageOnArmHit
public boolean isCarryableDamageOnArmHit() -
isCarryableAttackedOnMiss
public boolean isCarryableAttackedOnMiss()
-