megamek.common.weapons
Class ArtilleryWeaponIndirectHomingHandler

java.lang.Object
  extended by megamek.common.weapons.WeaponHandler
      extended by megamek.common.weapons.AmmoWeaponHandler
          extended by megamek.common.weapons.ArtilleryWeaponIndirectFireHandler
              extended by megamek.common.weapons.ArtilleryWeaponIndirectHomingHandler
All Implemented Interfaces:
java.io.Serializable, AttackHandler
Direct Known Subclasses:
ArtilleryWeaponDirectHomingHandler

public class ArtilleryWeaponIndirectHomingHandler
extends ArtilleryWeaponIndirectFireHandler

See Also:
Serialized Form

Field Summary
 
Fields inherited from class megamek.common.weapons.ArtilleryWeaponIndirectFireHandler
handledAmmoAndReport
 
Fields inherited from class megamek.common.weapons.AmmoWeaponHandler
ammo
 
Fields inherited from class megamek.common.weapons.WeaponHandler
ae, announcedEntityFiring, attackValue, bDirect, bGlancing, bMissed, bSalvo, damageType, game, generalDamageType, insertedAttacks, missed, nDamPerHit, nRange, nukeS2S, nweapons, roll, server, subjectId, target, throughFront, toHit, underWater, waa, weapon, wtype
 
Constructor Summary
ArtilleryWeaponIndirectHomingHandler(ToHitData t, WeaponAttackAction w, IGame g, Server s)
           
 
Method Summary
protected  void convertHomingShotToEntityTarget()
          Find the tagged entity for this attack Each TAG will attract a number of shots up to its priority number (mode setting) When all the TAGs are used up, the shots fired are reset.
 boolean handle(IGame.Phase phase, java.util.Vector<Report> vPhaseReport)
          handle this weapons firing
protected  boolean handleSpecialMiss(Entity entityTarget, boolean targetInBuilding, Building bldg, java.util.Vector<Report> vPhaseReport)
           
 
Methods inherited from class megamek.common.weapons.ArtilleryWeaponIndirectFireHandler
calcDamagePerHit, cares
 
Methods inherited from class megamek.common.weapons.AmmoWeaponHandler
checkAmmo, getNumberWeapons, useAmmo
 
Methods inherited from class megamek.common.weapons.WeaponHandler
addHeat, allShotsHit, announcedEntityFiring, calcAttackValue, calcHits, calcnCluster, canDoDirectBlowDamage, checkTerrain, doChecks, getAttackerId, getBracketingMultiplier, getCapMisMod, getWaa, handleBuildingDamage, handleClearDamage, handleEntityDamage, handleIgnitionDamage, insertAttacks, reportMiss, setAnnouncedEntityFiring, setDone, specialResolution, usesClusterTable
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArtilleryWeaponIndirectHomingHandler

public ArtilleryWeaponIndirectHomingHandler(ToHitData t,
                                            WeaponAttackAction w,
                                            IGame g,
                                            Server s)
Parameters:
t -
w -
g -
Method Detail

handle

public boolean handle(IGame.Phase phase,
                      java.util.Vector<Report> vPhaseReport)
Description copied from class: WeaponHandler
handle this weapons firing

Specified by:
handle in interface AttackHandler
Overrides:
handle in class ArtilleryWeaponIndirectFireHandler
Returns:
a boolean value indicating whether this should be kept or not

convertHomingShotToEntityTarget

protected void convertHomingShotToEntityTarget()
Find the tagged entity for this attack Each TAG will attract a number of shots up to its priority number (mode setting) When all the TAGs are used up, the shots fired are reset. So if you leave them all on 1-shot, then homing attacks will be evenly split, however many shots you fire. Priority setting is to allocate more homing attacks to a more important target as decided by player. TAGs fired by the enemy aren't eligible, nor are TAGs fired at a target on a different map sheet.


handleSpecialMiss

protected boolean handleSpecialMiss(Entity entityTarget,
                                    boolean targetInBuilding,
                                    Building bldg,
                                    java.util.Vector<Report> vPhaseReport)
Overrides:
handleSpecialMiss in class WeaponHandler
Returns:
a boolean value indicating wether or not this attack needs further calculating, like a missed shot hitting a building, or an AMS only shooting down some missiles.