Package megamek.common.weapons.handlers
Class SwarmWeaponAttackHandler
java.lang.Object
megamek.common.weapons.handlers.WeaponHandler
megamek.common.weapons.handlers.SwarmWeaponAttackHandler
- All Implemented Interfaces:
- Serializable,- AttackHandler
- Since:
- Feb 21, 2013
- See Also:
- 
Field SummaryFields 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 SummaryConstructorsConstructorDescriptionSwarmWeaponAttackHandler(ToHitData toHit, WeaponAttackAction waa, Game g, TWGameManager m) 
- 
Method SummaryModifier and TypeMethodDescriptionprotected intCalculate the damage per hit.protected intCalculate the number of hitsMethods inherited from class megamek.common.weapons.handlers.WeaponHandlerabsorbBuildingDamage, addGlancingBlowReports, addHeat, allShotsHit, announcedEntityFiring, applyGlancingBlowModifier, applyGlancingBlowModifier, calcAeroDamage, calcAttackValue, calcCapMissileAMSMod, calcCounterAV, calculateNumCluster, calculateNumClusterAero, canEngageCapitalMissile, cares, checkLI, checkPDConditions, checkTerrain, doAmmoFeedProblemCheck, doChecks, getAttacker, getAttackerId, getBracketingMultiplier, getCapMisMod, getCapMissileAMSMod, getClusterModifiers, getCounterAV, getFireTNRoll, getLargeCraftHeat, getNumberWeapons, getParentBayHandler, getSalvoBonus, getTotalGlancingBlowFactor, getWeaponAttackAction, handle, handleArtilleryDriftMarker, handleBuildingDamage, handleClearDamage, handleClearDamage, handleEntityDamage, handleIgnitionDamage, handlePartialCoverHit, handleSpecialMiss, initHit, insertAttacks, isLowProfileGlancingBlow, isStrafing, isStrafingFirstShot, isThunderBolt, reportMiss, reportMiss, restore, setAMSBayReportingFlag, setAnnouncedEntityFiring, setDone, setGlancingBlowFlags, setParentBayHandler, setPDBayReportingFlag, setStrafing, setStrafingFirstShot, specialResolution, unitGainsPartialCoverFromWater, unitStickingOutOfBuilding, useAmmo, usesClusterTable
- 
Constructor Details- 
SwarmWeaponAttackHandlerpublic SwarmWeaponAttackHandler(ToHitData toHit, WeaponAttackAction waa, Game g, TWGameManager m) throws EntityLoadingException - Throws:
- EntityLoadingException
 
 
- 
- 
Method Details- 
calcDamagePerHitprotected int calcDamagePerHit()Description copied from class:WeaponHandlerCalculate the damage per hit.- Overrides:
- calcDamagePerHitin class- WeaponHandler
- Returns:
- an intrepresenting the damage dealt per hit.
 
- 
calcHitsDescription copied from class:WeaponHandlerCalculate the number of hits- Overrides:
- calcHitsin class- WeaponHandler
- Parameters:
- vPhaseReport- - the- Vectorcontaining the phase report.
- Returns:
- an intcontaining the number of hits.
 
 
-