Package megamek.common.weapons.handlers
Class NarcExplosiveHandler
java.lang.Object
megamek.common.weapons.handlers.WeaponHandler
megamek.common.weapons.handlers.AmmoWeaponHandler
megamek.common.weapons.handlers.MissileWeaponHandler
megamek.common.weapons.handlers.NarcExplosiveHandler
- All Implemented Interfaces:
- Serializable,- AttackHandler
- See Also:
- 
Field SummaryFields inherited from class megamek.common.weapons.handlers.AmmoWeaponHandlerammoFields inherited from class megamek.common.weapons.handlers.WeaponHandleradvancedPD, ammoType, amsBayEngaged, amsBayEngagedCap, amsBayEngagedMissile, amsEngaged, announcedEntityFiring, apdsEngaged, attackingEntity, attackValue, 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, numWeapons, numWeaponsHit, originalAV, parentBayHandler, pdBayEngaged, pdBayEngagedCap, pdBayEngagedMissile, pdOverheated, roll, secondShot, sSalvoType, subjectId, target, throughFront, toHit, typeName, underWater, weapon, weaponAttackAction, weaponType
- 
Constructor SummaryConstructorsConstructorDescriptionNarcExplosiveHandler(ToHitData t, WeaponAttackAction w, Game g, TWGameManager m) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected intCalculate the damage per hit.protected intCalculate the number of hitsprotected intCalculate the clustering of the hitsMethods inherited from class megamek.common.weapons.handlers.MissileWeaponHandlercalcAttackValue, getAeroSanityAMSHitsMod, getAMSHitsMod, handle, handleSpecialMiss, isAdvancedAMS, isNemesisConfusable, isThunderBolt, setAMSBayReportingFlag, setPDBayReportingFlag, usesClusterTableMethods inherited from class megamek.common.weapons.handlers.AmmoWeaponHandlercheckAmmo, doAmmoFeedProblemCheck, doChecks, explodeRoundInBarrel, getNumberWeapons, useAmmoMethods inherited from class megamek.common.weapons.handlers.WeaponHandlerabsorbBuildingDamage, addGlancingBlowReports, addHeat, allShotsHit, announcedEntityFiring, applyGlancingBlowModifier, applyGlancingBlowModifier, calcAeroDamage, calcCapMissileAMSMod, calcCounterAV, calculateNumClusterAero, canEngageCapitalMissile, cares, checkLI, checkPDConditions, checkTerrain, getAttacker, getAttackerId, getBracketingMultiplier, getCapMisMod, getCapMissileAMSMod, getClusterModifiers, getCounterAV, getFireTNRoll, getLargeCraftHeat, getParentBayHandler, getSalvoBonus, getTotalGlancingBlowFactor, getWeaponAttackAction, handleArtilleryDriftMarker, handleBuildingDamage, handleClearDamage, handleClearDamage, handleEntityDamage, handleIgnitionDamage, handlePartialCoverHit, initHit, insertAttacks, isLowProfileGlancingBlow, isStrafing, isStrafingFirstShot, reportMiss, reportMiss, restore, setAnnouncedEntityFiring, setDone, setGlancingBlowFlags, setParentBayHandler, setStrafing, setStrafingFirstShot, specialResolution, unitGainsPartialCoverFromWater, unitStickingOutOfBuilding
- 
Constructor Details- 
NarcExplosiveHandlerpublic NarcExplosiveHandler(ToHitData t, WeaponAttackAction w, Game g, TWGameManager m) throws EntityLoadingException - Throws:
- EntityLoadingException
 
 
- 
- 
Method Details- 
calcHitsDescription copied from class:WeaponHandlerCalculate the number of hits- Overrides:
- calcHitsin class- MissileWeaponHandler
- Parameters:
- vPhaseReport- - the- Vectorcontaining the phase report.
- Returns:
- an intcontaining the number of hits.
 
- 
calculateNumClusterprotected int calculateNumCluster()Description copied from class:WeaponHandlerCalculate the clustering of the hits- Overrides:
- calculateNumClusterin class- MissileWeaponHandler
- Returns:
- a intvalue saying how much hits are in each cluster of damage.
 
- 
calcDamagePerHitprotected int calcDamagePerHit()Description copied from class:WeaponHandlerCalculate the damage per hit.- Overrides:
- calcDamagePerHitin class- MissileWeaponHandler
- Returns:
- an intrepresenting the damage dealt per hit.
 
 
-