Class SRTWeapon

All Implemented Interfaces:
Serializable, ITechnology
Direct Known Subclasses:
CLSRT1, CLSRT1OS, CLSRT2, CLSRT2IOS, CLSRT2OS, CLSRT3, CLSRT3OS, CLSRT4, CLSRT4IOS, CLSRT4OS, CLSRT5, CLSRT5OS, CLSRT6, CLSRT6IOS, CLSRT6OS, ISSRT2, ISSRT2IOS, ISSRT2OS, ISSRT4, ISSRT4IOS, ISSRT4OS, ISSRT6, ISSRT6IOS, ISSRT6OS

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

    • SRTWeapon

      public SRTWeapon()
  • Method Details

    • getTonnage

      public double getTonnage(Entity entity, int location, double size)
      Description copied from class: EquipmentType
      Calculates the weight of the equipment. If entity is null, equipment without a fixed weight will return EquipmentType.TONNAGE_VARIABLE.
      Overrides:
      getTonnage in class EquipmentType
      Parameters:
      entity - The unit the equipment is mounted on
      location - The mount location
      size - The size (for variable-sized equipment)
      Returns:
      The weight of the equipment in tons
    • 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
    • getBattleForceDamage

      public double getBattleForceDamage(int range, int baSquadSize)
      Description copied from class: WeaponType
      BattleForce-scale damage for BattleArmor, using cluster hits table based on squad size. AlphaStrike uses a different method.
      Overrides:
      getBattleForceDamage in class MissileWeapon
      Parameters:
      range - - the range in hexes
      baSquadSize - - the number of suits in the squad/point/level i
      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)
    • 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