Package megamek.common.rules.core
Class CoreRulesUnderwater
java.lang.Object
megamek.common.rules.RulesUnderwater
megamek.common.rules.core.CoreRulesUnderwater
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintWhat is the target number for the breach.intgetExtremeRange(WeaponType weaponType) Get the extreme range of the weapon in waterintgetLongRange(WeaponType weaponType) Get the long range of the weapon in waterintgetMediumRange(WeaponType weaponType) Get the medium range of the weapon in waterintgetShortRange(WeaponType weaponType) Get the short range of the weapon in waterbooleanDoes water block LOS?
-
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:
getBreachTargetin classRulesUnderwater- Returns:
- the breach target number
-
waterBlocksLOS
public boolean waterBlocksLOS()Does water block LOS? Underwater does not break LOS. Core p.58, 62- Specified by:
waterBlocksLOSin classRulesUnderwater- Returns:
- true if water blocks line of sight
-
getShortRange
Get the short range of the weapon in water- Specified by:
getShortRangein classRulesUnderwater- Parameters:
weaponType-- Returns:
- short range
-
getMediumRange
Get the medium range of the weapon in water- Specified by:
getMediumRangein classRulesUnderwater- Parameters:
weaponType-- Returns:
- medium range
-
getLongRange
Get the long range of the weapon in water- Specified by:
getLongRangein classRulesUnderwater- Parameters:
weaponType-- Returns:
- long range
-
getExtremeRange
Get the extreme range of the weapon in water- Specified by:
getExtremeRangein classRulesUnderwater- Parameters:
weaponType-- Returns:
- extreme range
-