Class RulesHeat

java.lang.Object
megamek.common.rules.RulesHeat
Direct Known Subclasses:
CoreRulesHeat, TWRulesHeat

public abstract class RulesHeat extends Object
  • 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 value
      torsoMountedCockpit - true if the cockpit is torso-mounted
      mtHeat - true if using MT heat rules
      bPainShunt - true if the pilot has a pain shunt
      Returns:
      LifeSupportHeat This stores the heat level and damage amount
    • explodeAmmo

      @Nullable public abstract CriticalSlot explodeAmmo(ArrayList<CriticalSlot> ammoCriticals)
      Which ammo goes boom.
      Parameters:
      ammoCriticals - the list of ammo critical slots
      Returns:
      the ammo critical slot that explodes, or null if none