Class TWRulesHeat

java.lang.Object
megamek.common.rules.RulesHeat
megamek.common.rules.totalwarfare.TWRulesHeat

public class TWRulesHeat extends RulesHeat
  • Constructor Details

    • TWRulesHeat

      public TWRulesHeat()
  • Method Details

    • standingHeat

      public int standingHeat()
      Attempts to stand generates heat
      Specified by:
      standingHeat in class RulesHeat
      Returns:
      the heat generated by standing
    • 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:
      checkLifeSupportHeat in class RulesHeat
      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 CriticalSlot explodeAmmo(ArrayList<CriticalSlot> ammoCriticals)
      Which ammo goes boom. Ammo explosions from heat TW p.160
      Specified by:
      explodeAmmo in class RulesHeat
      Parameters:
      ammoCriticals - the list of ammo critical slots
      Returns:
      the ammo critical slot that explodes, or null if none