Class TWRulesArmor
java.lang.Object
megamek.common.rules.RulesArmor
megamek.common.rules.totalwarfare.TWRulesArmor
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanDoes armor allow armor piercing.booleanallowHeatWeapon(boolean heat_weapon) Allow heat weapons for heat armor.intballisticReinforcedArmorReduction(int damage) Ballistic reinforced armor reductionbooleanblockTAC(int armorType) Block TAC (Targeting Auto-Correlator).booleancheckLancePenetration(int armorType) Does a lance penetrate the armor.intImpact Resistant Armor breach.intImpact resistant armor.intreactiveArmorReduction(int damage) Reactive armor reductionintreduceHeatDamageByArmor(int armorType, int heatDamage) Does the armor reduce heat?intreduceImpactDamage(int entityId, HitData hit, int damage, Vector<Report> reportVec, HitDamageType damageType) How does impact armor reduce damage.booleanreflectiveAP(boolean reflectiveArmor) Does reflective armor cause modifiers for AP? In TW, reflective armor will cause AP crit chance changes.intreflectiveArmorReduction(int damage) Reflective armor reduction
-
Constructor Details
-
TWRulesArmor
public TWRulesArmor()
-
-
Method Details
-
allowHeatWeapon
public boolean allowHeatWeapon(boolean heat_weapon) Allow heat weapons for heat armor. TW does not need to know about heat weapons for armor.- Specified by:
allowHeatWeaponin classRulesArmor- Parameters:
heat_weapon- true if the weapon is a heat weapon- Returns:
- true if heat weapons are allowed
-
allowArmorPiercing
Does armor allow armor piercing. Hardened, FerroLam, and Reactive prevent AP ammo.- Specified by:
allowArmorPiercingin classRulesArmor- Parameters:
mods- the modifications info- Returns:
- true if armor piercing is allowed
-
impactArmorBreach
public int impactArmorBreach()Impact Resistant Armor breach. Impact Resistant Armor breach.- Specified by:
impactArmorBreachin classRulesArmor- Returns:
- the breach value modifier
-
impactArmorMod
public int impactArmorMod()Impact resistant armor. Impact armor reduces crit rolls.- Specified by:
impactArmorModin classRulesArmor- Returns:
- the impact armor modifier
-
checkLancePenetration
public boolean checkLancePenetration(int armorType) Does a lance penetrate the armor. Hardened and ferro lam prevent penetration.- Specified by:
checkLancePenetrationin classRulesArmor- Parameters:
armorType- the type of armor- Returns:
- true if a lance penetrates the armor
-
reduceHeatDamageByArmor
public int reduceHeatDamageByArmor(int armorType, int heatDamage) Does the armor reduce heat?- Specified by:
reduceHeatDamageByArmorin classRulesArmor- Parameters:
armorType- the type of armorheatDamage- the amount of heat damage- Returns:
- the reduced heat damage amount
-
reflectiveAP
public boolean reflectiveAP(boolean reflectiveArmor) Does reflective armor cause modifiers for AP? In TW, reflective armor will cause AP crit chance changes.- Specified by:
reflectiveAPin classRulesArmor- Parameters:
reflectiveArmor- true if the armor is reflective- Returns:
- true if reflective armor affects AP modifiers
-
blockTAC
public boolean blockTAC(int armorType) Block TAC (Targeting Auto-Correlator).- Specified by:
blockTACin classRulesArmor- Parameters:
armorType- the type of armor- Returns:
- true if TAC is blocked
-
reduceImpactDamage
public int reduceImpactDamage(int entityId, HitData hit, int damage, Vector<Report> reportVec, HitDamageType damageType) How does impact armor reduce damage.- Specified by:
reduceImpactDamagein classRulesArmor- Parameters:
entityId- the entity IDhit- the hit datadamage- the damage amountreportVec- vector of reports describing the damage reductiondamageType- the type of damage- Returns:
- the reduced damage amount
-
reflectiveArmorReduction
public int reflectiveArmorReduction(int damage) Reflective armor reduction Round down. TO:AUE p.93- Specified by:
reflectiveArmorReductionin classRulesArmor- Parameters:
damage- the damage to be reduced- Returns:
- the reduced damage amount
-
reactiveArmorReduction
public int reactiveArmorReduction(int damage) Reactive armor reduction Round down. TO:AUE p.93- Specified by:
reactiveArmorReductionin classRulesArmor- Parameters:
damage- the damage to be reduced- Returns:
- the reduced damage amount
-
ballisticReinforcedArmorReduction
public int ballisticReinforcedArmorReduction(int damage) Ballistic reinforced armor reduction Round down. TO:AUE p.93- Specified by:
ballisticReinforcedArmorReductionin classRulesArmor- Parameters:
damage- the damage to be reduced- Returns:
- the reduced damage amount
-