Class AmmoBayWeaponHandler

All Implemented Interfaces:
Serializable, AttackHandler
Direct Known Subclasses:
ACBayHandler, ArtilleryBayWeaponDistantFireHandler, CapitalMissileBayHandler, CapitalMissileBearingsOnlyHandler, MissileBayWeaponHandler, PlasmaBayWeaponHandler, ScreenLauncherBayHandler

public class AmmoBayWeaponHandler extends BayWeaponHandler
See Also:
  • Constructor Details

  • Method Details

    • calcAttackValue

      protected int calcAttackValue()
      Calculate the attack value based on range This needs to do additional work for Weapon Bays with ammo. I need to use the ammo within this function because I may run out of ammo while going through the loop Sine this function is called in the WeaponHandler constructor it should be ok to use the ammo here
      Overrides:
      calcAttackValue in class BayWeaponHandler
      Returns:
      an int representing the attack value at that range.
    • updateAVForAmmo

      protected double updateAVForAmmo(double current_av, AmmoType ammoType, WeaponType bayWType, int range, int wId)