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 SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum Constants
- 
Method SummaryModifier 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- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
- 
isCarryableAlwaysDamagedpublic boolean isCarryableAlwaysDamaged()
- 
isCarryableDamageOnArmHitpublic boolean isCarryableDamageOnArmHit()
- 
isCarryableAttackedOnMisspublic boolean isCarryableAttackedOnMiss()
 
-