Class StreakSRMWeapon

All Implemented Interfaces:
Serializable, ITechnology
Direct Known Subclasses:
CLStreakSRM1, CLStreakSRM2, CLStreakSRM2IOS, CLStreakSRM2OS, CLStreakSRM3, CLStreakSRM4, CLStreakSRM4IOS, CLStreakSRM4OS, CLStreakSRM5, CLStreakSRM6, CLStreakSRM6IOS, CLStreakSRM6OS, ISStreakSRM2, ISStreakSRM2IOS, ISStreakSRM2OS, ISStreakSRM4, ISStreakSRM4IOS, ISStreakSRM4OS, ISStreakSRM6, ISStreakSRM6IOS, ISStreakSRM6OS

public abstract class StreakSRMWeapon extends SRMWeapon
See Also:
  • Constructor Details

    • StreakSRMWeapon

      public StreakSRMWeapon()
  • 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 SRMWeapon
      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

      protected AttackHandler getCorrectHandler(ToHitData toHit, WeaponAttackAction waa, Game game, TWGameManager manager)
      Overrides:
      getCorrectHandler in class SRMWeapon
    • 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 SRMWeapon
      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 SRMWeapon
      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 SRMWeapon
      Returns:
      A String similar to getName() but modified to support a better sorting