Package megamek.common.rules
Class RulesHeat
java.lang.Object
megamek.common.rules.RulesHeat
- Direct Known Subclasses:
CoreRulesHeat,TWRulesHeat
-
Nested Class Summary
Nested Classes -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract RulesHeat.LifeSupportHeatcheckLifeSupportHeat(int damageHeat, boolean torsoMountedCockpit, boolean mtHeat, boolean bPainShunt) How does heat affect when life support is hit.abstract CriticalSlotexplodeAmmo(ArrayList<CriticalSlot> ammoCriticals) Which ammo goes boom.abstract intDoes standing generate heat.abstract booleanusesAvoidingShutdown(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
-
RulesHeat
public RulesHeat()
-
-
Method Details
-
standingHeat
public abstract int standingHeat()Does standing generate heat.- Returns:
- the heat generated by standing
-
usesAvoidingShutdown
public abstract 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.- Parameters:
avoidingShutdownOption- the value of the Avoiding Shutdown game option- Returns:
trueif shutdown avoidance uses the Avoiding Shutdown rule
-
checkLifeSupportHeat
public abstract RulesHeat.LifeSupportHeat checkLifeSupportHeat(int damageHeat, boolean torsoMountedCockpit, boolean mtHeat, boolean bPainShunt) How does heat affect when life support is hit.- 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.- Parameters:
ammoCriticals- the list of ammo critical slots- Returns:
- the ammo critical slot that explodes, or null if none
-