Class CoreRulesUnderwater

java.lang.Object
megamek.common.rules.RulesUnderwater
megamek.common.rules.core.CoreRulesUnderwater

public class CoreRulesUnderwater extends RulesUnderwater
  • Constructor Details

    • CoreRulesUnderwater

      public CoreRulesUnderwater()
  • Method Details

    • getBreachTarget

      public int getBreachTarget()
      What is the target number for the breach. Underwater target number is 5+ to avoid
      Specified by:
      getBreachTarget in class RulesUnderwater
      Returns:
      the breach target number
    • waterBlocksLOS

      public boolean waterBlocksLOS()
      Does water block LOS? Underwater does not break LOS. Core p.58, 62
      Specified by:
      waterBlocksLOS in class RulesUnderwater
      Returns:
      true if water blocks line of sight
    • getShortRange

      public int getShortRange(WeaponType weaponType)
      Get the short range of the weapon in water
      Specified by:
      getShortRange in class RulesUnderwater
      Parameters:
      weaponType -
      Returns:
      short range
    • getMediumRange

      public int getMediumRange(WeaponType weaponType)
      Get the medium range of the weapon in water
      Specified by:
      getMediumRange in class RulesUnderwater
      Parameters:
      weaponType -
      Returns:
      medium range
    • getLongRange

      public int getLongRange(WeaponType weaponType)
      Get the long range of the weapon in water
      Specified by:
      getLongRange in class RulesUnderwater
      Parameters:
      weaponType -
      Returns:
      long range
    • getExtremeRange

      public int getExtremeRange(WeaponType weaponType)
      Get the extreme range of the weapon in water
      Specified by:
      getExtremeRange in class RulesUnderwater
      Parameters:
      weaponType -
      Returns:
      extreme range