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.
-
Constructor Details
-
RulesHeat
public RulesHeat()
-
-
Method Details
-
standingHeat
public abstract int standingHeat()Does standing generate heat.- Returns:
- the heat generated by standing
-
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
-