Class ACWeapon

All Implemented Interfaces:
Serializable, ITechnology
Direct Known Subclasses:
CLImprovedAC10, CLImprovedAC2, CLImprovedAC20, CLImprovedAC5, HVACWeapon, ISAC10, ISAC10i, ISAC10Primitive, ISAC15, ISAC2, ISAC20, ISAC20Primitive, ISAC2Primitive, ISAC5, ISAC5Primitive, ISGAC2, ISGAC4, ISGAC6, ISGAC8, LACWeapon, ProtoMekACWeapon

public abstract class ACWeapon extends AmmoWeapon
N.B. This class is overridden for AC/2, AC/5, AC/10, AC/10, NOT ultras/LB/RAC. (No difference between ACWeapon and AmmoWeapon except the ability to use special ammunition (precision, AP, etc.))
See Also:
  • Constructor Details

    • ACWeapon

      public ACWeapon()
  • Method Details

    • getCorrectHandler

      @Nullable public AttackHandler getCorrectHandler(ToHitData toHit, WeaponAttackAction waa, Game game, TWGameManager gameManager)
      Overrides:
      getCorrectHandler in class AmmoWeapon
    • getDamage

      public int getDamage()
      Overrides:
      getDamage in class WeaponType
    • getBattleForceDamage

      public double getBattleForceDamage(int range)
      Description copied from class: WeaponType
      Damage calculation for BattleForce and AlphaStrike
      Overrides:
      getBattleForceDamage in class WeaponType
      Parameters:
      range - The range in hexes
      Returns:
      Damage in BattleForce scale
    • getBattleForceClass

      public int getBattleForceClass()
      Overrides:
      getBattleForceClass in class WeaponType
      Returns:
      The class of weapons for those that are tracked separately from standard damage (AlphaStrike)
    • adaptToGameOptions

      public void adaptToGameOptions(IGameOptions gameOptions)
      Description copied from class: Weapon
      Adapt the weapon type to the Game Options such as PPC Field Inhibitors or Dial Down Damage, usually adding or removing modes. When overriding this in a weapon subclass, call super()!
      Overrides:
      adaptToGameOptions in class Weapon
      Parameters:
      gameOptions - The GameOptions (game.getOptions())