Class CLIATMWeapon

All Implemented Interfaces:
Serializable, ITechnology
Direct Known Subclasses:
CLFussilade, CLIATM12, CLIATM3, CLIATM6, CLIATM9

public abstract class CLIATMWeapon extends MissileWeapon
See Also:
  • Constructor Details

    • CLIATMWeapon

      public CLIATMWeapon()
  • Method Details

    • getCorrectHandler

      @Nullable public AttackHandler getCorrectHandler(ToHitData toHit, WeaponAttackAction waa, Game game, TWGameManager manager)
      Overrides:
      getCorrectHandler in class MissileWeapon
    • getBattleForceDamage

      public double getBattleForceDamage(int range, Mounted<?> fcs)
      Description copied from class: WeaponType
      Damage calculation for BattleForce and AlphaStrike for missile weapons that may have advanced fire control
      Overrides:
      getBattleForceDamage in class MissileWeapon
      Parameters:
      range - - the range in hexes
      fcs - - linked Artemis or Apollo FCS (null for none)
      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)
    • isAlphaStrikeIndirectFire

      public boolean isAlphaStrikeIndirectFire()
      Description copied from class: WeaponType
      Returns true if this weapon type contributes to the AlphaStrike IF ability. This is identical to TW indirect fire for most but not all weapons (see e.g. IATMs)
      Overrides:
      isAlphaStrikeIndirectFire in class WeaponType
    • 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())
    • getSortingName

      public String getSortingName()
      Description copied from class: EquipmentType
      Sorting with the String returned by this method results in an improved ordering and grouping of equipment than by getName(); for example, AC2/5/10/20 will appear in that order instead of the order AC10/2/20/5 and S/M/L Lasers will be grouped together.
      Overrides:
      getSortingName in class EquipmentType
      Returns:
      A String similar to getName() but modified to support a better sorting
    • getBaseAeroDamage

      protected double getBaseAeroDamage()
      This is a streak weapon, so we use the rack size for the Aero damage.