Class UltraWeaponHandler

All Implemented Interfaces:
Serializable, AttackHandler
Direct Known Subclasses:
PrototypeCLUltraWeaponHandler, PrototypeISUltraWeaponHandler, RACHandler, RapidFireACWeaponHandler

public class UltraWeaponHandler extends AmmoWeaponHandler
Since:
Sept 29, 2004
See Also:
  • Field Details

    • howManyShots

      protected int howManyShots
  • Constructor Details

  • Method Details

    • useAmmo

      protected void useAmmo()
      Overrides:
      useAmmo in class AmmoWeaponHandler
    • attemptToReloadWeapon

      protected void attemptToReloadWeapon()
    • reduceShotsLeft

      protected void reduceShotsLeft(int shotsNeedFiring)
    • calcHits

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

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

      protected int calcDamagePerHit()
      Description copied from class: WeaponHandler
      Calculate the damage per hit.
      Overrides:
      calcDamagePerHit in class WeaponHandler
      Returns:
      an int representing the damage dealt per hit.
    • 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 WeaponHandler
    • calculateNumClusterAero

      protected int calculateNumClusterAero(Entity entityTarget)
      Overrides:
      calculateNumClusterAero in class WeaponHandler