Class TWRulesHeat
java.lang.Object
megamek.common.rules.RulesHeat
megamek.common.rules.totalwarfare.TWRulesHeat
-
Nested Class Summary
Nested classes/interfaces inherited from class megamek.common.rules.RulesHeat
RulesHeat.LifeSupportHeat -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncheckLifeSupportHeat(int damageHeat, boolean torsoMountedCockpit, boolean mtHeat, boolean bPainShunt) How does heat affect when life support is hit.explodeAmmo(ArrayList<CriticalSlot> ammoCriticals) Which ammo goes boom.intAttempts to stand generates heatbooleanusesAvoidingShutdown(boolean avoidingShutdownOption) Whether the optional Avoiding Shutdown rule (TO:AR p.102) is in play, which turns the roll to avoid a heat shutdown into a Piloting Skill Roll.
-
Constructor Details
-
TWRulesHeat
public TWRulesHeat()
-
-
Method Details
-
standingHeat
public int standingHeat()Attempts to stand generates heat- Specified by:
standingHeatin classRulesHeat- Returns:
- the heat generated by standing
-
usesAvoidingShutdown
public boolean usesAvoidingShutdown(boolean avoidingShutdownOption) Whether the optional Avoiding Shutdown rule (TO:AR p.102) is in play, which turns the roll to avoid a heat shutdown into a Piloting Skill Roll. Both rulesets roll against the plain Avoid number by default; the rule is a Tactical Operations option that either can use, and each implementation cites where its own default comes from. Total Warfare rolls 2D6 against the Avoid number, TW p.102. Avoiding Shutdown is an optional Tactical Operations rule, TO:AR p.102, played when its option is on.- Specified by:
usesAvoidingShutdownin classRulesHeat- Parameters:
avoidingShutdownOption- the value of the Avoiding Shutdown game option- Returns:
trueif shutdown avoidance uses the Avoiding Shutdown rule
-
checkLifeSupportHeat
@Nullable public RulesHeat.LifeSupportHeat checkLifeSupportHeat(int damageHeat, boolean torsoMountedCockpit, boolean mtHeat, boolean bPainShunt) How does heat affect when life support is hit. How does heat affect when life support is hit.- Specified by:
checkLifeSupportHeatin classRulesHeat- Parameters:
damageHeat- the damage heat valuetorsoMountedCockpit- true if the cockpit is torso-mountedmtHeat- true if using MT heat rulesbPainShunt- true if the pilot has a pain shunt- Returns:
- LifeSupportHeat This stores the heat level and damage amount
-
explodeAmmo
Which ammo goes boom. Ammo explosions from heat TW p.160- Specified by:
explodeAmmoin classRulesHeat- Parameters:
ammoCriticals- the list of ammo critical slots- Returns:
- the ammo critical slot that explodes, or null if none
-