Class BayWeaponHandler

java.lang.Object
megamek.common.weapons.WeaponHandler
megamek.common.weapons.BayWeaponHandler
All Implemented Interfaces:
Serializable, AttackHandler
Direct Known Subclasses:
AmmoBayWeaponHandler

public class BayWeaponHandler extends WeaponHandler
See Also:
  • Constructor Details

  • Method Details

    • calcAttackValue

      protected int calcAttackValue()
      Calculate the attack value based on range
      Overrides:
      calcAttackValue in class WeaponHandler
      Returns:
      an int representing the attack value at that range.
    • addHeat

      protected void addHeat()
      Overrides:
      addHeat in class WeaponHandler
    • handle

      public boolean handle(GamePhase phase, Vector<Report> vPhaseReport)
      Sigh, according to the ruling linked below, when weapon bays are fired at ground targets, they should make one to-hit roll, but the AV of each weapon should be applied separately as damage - that needs a special handler
      Specified by:
      handle in interface AttackHandler
      Overrides:
      handle in class WeaponHandler
      Returns:
      a boolean value indicating whether this should be kept or not
    • initializeCapMissileArmor

      protected int initializeCapMissileArmor()
      Calculate the starting armor value of a flight of Capital Missiles Used for Aero Sanity. This is done in calcAttackValue() otherwise
    • handleAeroSanity

      public boolean handleAeroSanity(GamePhase phase, Vector<Report> vPhaseReport)