Class RapidFireACWeaponHandler

All Implemented Interfaces:
Serializable, AttackHandler
Direct Known Subclasses:
RapidFireHVACWeaponHandler

public class RapidFireACWeaponHandler extends UltraWeaponHandler
Handler for rapid-fire autocannons. When using special ammunition, this handler spawns auto-hit attacks using the appropriate special ammo handler (ACAPHandler, ACFlakHandler, etc.) to ensure special ammo effects are properly applied to each hit.
See Also:
  • Field Details

    • RAPID_FIRE_SPAWN_MARKER

      public static final String RAPID_FIRE_SPAWN_MARKER
      Marker added to auto-hit ToHitData to indicate spawned rapid-fire attacks.
      See Also:
  • Constructor Details

  • Method Details

    • doChecks

      protected boolean doChecks(Vector<Report> vPhaseReport)
      Overrides:
      doChecks in class UltraWeaponHandler
      Parameters:
      vPhaseReport - - A Vector containing the phase report.
      Returns:
      a boolean value indicating whether the attack misses because of a failed check.
    • usesClusterTable

      protected boolean usesClusterTable()
      Description copied from class: WeaponHandler
      Does this attack use the cluster hit table? necessary to determine how Aero damage should be applied
      Overrides:
      usesClusterTable in class UltraWeaponHandler
    • calcHits

      protected int calcHits(Vector<Report> vPhaseReport)
      Description copied from class: WeaponHandler
      Calculate the number of hits
      Overrides:
      calcHits in class UltraWeaponHandler
      Parameters:
      vPhaseReport - - the Vector containing the phase report.
      Returns:
      an int containing the number of hits.