Class ATMHandler

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

public class ATMHandler extends MissileWeaponHandler
See Also:
  • Constructor Details

  • Method Details

    • calcDamagePerHit

      protected int calcDamagePerHit()
      Description copied from class: WeaponHandler
      Calculate the damage per hit.
      Overrides:
      calcDamagePerHit in class MissileWeaponHandler
      Returns:
      an int representing the damage dealt per hit.
    • calcHits

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

      protected int calculateNumCluster()
      Description copied from class: WeaponHandler
      Calculate the clustering of the hits
      Overrides:
      calculateNumCluster in class MissileWeaponHandler
      Returns:
      a int value saying how much hits are in each cluster of damage.
    • calcAttackValue

      protected int calcAttackValue()
      Calculate the attack value based on range
      Overrides:
      calcAttackValue in class MissileWeaponHandler
      Returns:
      an int representing the attack value at that range.
    • calcStandardAndExtendedAmmoHits

      protected int calcStandardAndExtendedAmmoHits(Vector<Report> vPhaseReport)
    • specialResolution

      protected boolean specialResolution(Vector<Report> vPhaseReport, Entity entityTarget)
      Description copied from class: WeaponHandler
      special resolution, like minefields and arty
      Overrides:
      specialResolution in class WeaponHandler
      Parameters:
      vPhaseReport - - a Vector containing the phase report
      entityTarget - - the Entity targeted, or null, if no Entity targeted
      Returns:
      true when done with processing, false when not