Package megamek.common.weapons
Class NarcHandler
java.lang.Object
megamek.common.weapons.WeaponHandler
megamek.common.weapons.AmmoWeaponHandler
megamek.common.weapons.MissileWeaponHandler
megamek.common.weapons.NarcHandler
- All Implemented Interfaces:
Serializable
,AttackHandler
- See Also:
-
Field Summary
Fields inherited from class megamek.common.weapons.WeaponHandler
advancedPD, ae, amsBayEngaged, amsBayEngagedCap, amsBayEngagedMissile, amsEngaged, announcedEntityFiring, apdsEngaged, attackValue, atype, bDirect, bGlancing, bLowProfileGlancing, bMissed, bSalvo, calcDmgPerHitReport, CapMissileAMSMod, CapMissileArmor, CapMissileMissed, CounterAV, damageType, firstHit, game, gameManager, generalDamageType, hit, insertedAttacks, isJammed, isStrafing, isStrafingFirstShot, missed, nDamPerHit, nRange, nSalvoBonus, nukeS2S, numRapidFireHits, nweapons, nweaponsHit, originalAV, parentBayHandler, pdBayEngaged, pdBayEngagedCap, pdBayEngagedMissile, pdOverheated, roll, secondShot, sSalvoType, subjectId, target, throughFront, toHit, typeName, underWater, waa, weapon, wtype
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected int
Calculate the damage per hit.protected int
Calculate the number of hitsprotected int
Calculate the clustering of the hitsprotected void
handleEntityDamage
(Entity entityTarget, Vector<Report> vPhaseReport, Building bldg, int hits, int nCluster, int bldgAbsorbs) Handle damage against an entity, called once per hit by default.protected void
Sets the appropriate AMS Bay reporting flag depending on what type of missile this isprotected void
Sets the appropriate PD Bay reporting flag depending on what type of missile this isprotected boolean
Does this attack use the cluster hit table? necessary to determine how Aero damage should be appliedMethods inherited from class megamek.common.weapons.MissileWeaponHandler
calcAttackValue, getAeroSanityAMSHitsMod, getAMSHitsMod, handle, handleSpecialMiss, isAdvancedAMS, isNemesisConfusable, isTbolt
Methods inherited from class megamek.common.weapons.AmmoWeaponHandler
checkAmmo, doAmmoFeedProblemCheck, doChecks, explodeRoundInBarrel, getNumberWeapons, useAmmo
Methods inherited from class megamek.common.weapons.WeaponHandler
absorbBuildingDamage, addGlancingBlowReports, addHeat, allShotsHit, announcedEntityFiring, applyGlancingBlowModifier, applyGlancingBlowModifier, calcAeroDamage, calcCapMissileAMSMod, calcCounterAV, calcnClusterAero, canEngageCapitalMissile, cares, checkLI, checkPDConditions, checkTerrain, getAttacker, getAttackerId, getBracketingMultiplier, getCapMisMod, getCapMissileAMSMod, getClusterModifiers, getCounterAV, getFireTNRoll, getLargeCraftHeat, getParentBayHandler, getSalvoBonus, getTotalGlancingBlowFactor, getWaa, handleArtilleryDriftMarker, handleBuildingDamage, handleClearDamage, handleClearDamage, handleIgnitionDamage, handlePartialCoverHit, initHit, insertAttacks, isLowProfileGlancingBlow, isStrafing, isStrafingFirstShot, reportMiss, reportMiss, restore, setAnnouncedEntityFiring, setDone, setGlancingBlowFlags, setParentBayHandler, setStrafing, setStrafingFirstShot, specialResolution, unitGainsPartialCoverFromWater, unitStickingOutOfBuilding
-
Constructor Details
-
NarcHandler
-
-
Method Details
-
calcHits
Description copied from class:WeaponHandler
Calculate the number of hits- Overrides:
calcHits
in classMissileWeaponHandler
- Parameters:
vPhaseReport
- - theVector
containing the phase report.- Returns:
- an
int
containing the number of hits.
-
setAMSBayReportingFlag
protected void setAMSBayReportingFlag()Sets the appropriate AMS Bay reporting flag depending on what type of missile this is- Overrides:
setAMSBayReportingFlag
in classMissileWeaponHandler
-
setPDBayReportingFlag
protected void setPDBayReportingFlag()Sets the appropriate PD Bay reporting flag depending on what type of missile this is- Overrides:
setPDBayReportingFlag
in classMissileWeaponHandler
-
calcnCluster
protected int calcnCluster()Description copied from class:WeaponHandler
Calculate the clustering of the hits- Overrides:
calcnCluster
in classMissileWeaponHandler
- Returns:
- a
int
value saying how much hits are in each cluster of damage.
-
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 classMissileWeaponHandler
-
calcDamagePerHit
protected int calcDamagePerHit()Description copied from class:WeaponHandler
Calculate the damage per hit.- Overrides:
calcDamagePerHit
in classMissileWeaponHandler
- Returns:
- an
int
representing the damage dealt per hit.
-
handleEntityDamage
protected void handleEntityDamage(Entity entityTarget, Vector<Report> vPhaseReport, Building bldg, int hits, int nCluster, int bldgAbsorbs) Description copied from class:WeaponHandler
Handle damage against an entity, called once per hit by default.- Overrides:
handleEntityDamage
in classWeaponHandler
-