Class LRMSwarmHandler
java.lang.Object
megamek.common.weapons.handlers.WeaponHandler
megamek.common.weapons.handlers.AmmoWeaponHandler
megamek.common.weapons.handlers.MissileWeaponHandler
megamek.common.weapons.handlers.lrm.LRMHandler
megamek.common.weapons.handlers.lrm.LRMSwarmHandler
- All Implemented Interfaces:
Serializable,AttackHandler
- Direct Known Subclasses:
LRMSwarmIHandler
- See Also:
-
Field Summary
Fields inherited from class megamek.common.weapons.handlers.MissileWeaponHandler
multiAMSFields inherited from class megamek.common.weapons.handlers.AmmoWeaponHandler
ammoFields inherited from class megamek.common.weapons.handlers.WeaponHandler
advancedPD, 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, weaponEntity, weaponType -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected intCalculate the damage per hit.protected intCalculate the number of hitsbooleanhandle this weapons firingprotected booleanhandleSpecialMiss(Entity entityTarget, boolean bldgDamagedOnMiss, IBuilding bldg, Vector<Report> vPhaseReport, GamePhase phase) Methods inherited from class megamek.common.weapons.handlers.lrm.LRMHandler
addIncendiaryMixedReport, getEffectiveRackSize, getIncendiaryFireTN, getIncendiaryMissileCount, getSemiGuidedClusterModifier, handleBuildingDamage, handleClearDamage, handleEntityDamage, handleIgnitionDamage, isIncendiaryMixed, specialResolution, tryIncendiaryIgnitionMethods inherited from class megamek.common.weapons.handlers.MissileWeaponHandler
calcAttackValue, calculateNumCluster, getAeroSanityAMSHitsMod, getAMSHitsMod, handleSpecialMiss, isAdvancedAMS, isNemesisConfusable, isThunderBolt, setAMSBayReportingFlag, setPDBayReportingFlag, usesClusterTableMethods inherited from class megamek.common.weapons.handlers.AmmoWeaponHandler
checkAmmo, doAmmoFeedProblemCheck, doChecks, explodeRoundInBarrel, getNumberWeapons, useAmmoMethods inherited from class megamek.common.weapons.handlers.WeaponHandler
absorbBuildingDamage, addGlancingBlowReports, addHeat, allShotsHit, announcedEntityFiring, appliesAttackValueInGroups, applyGlancingBlowModifier, applyGlancingBlowModifier, applyPainShuntModifier, calcAeroDamage, calcCapMissileAMSMod, calcCounterAV, calculateNumClusterAero, canEngageCapitalMissile, cares, checkLI, checkPDConditions, checkTerrain, getAttacker, getAttackerId, getAttackValueBonus, getBracketingMultiplier, getCapMisMod, getCapMissileAMSMod, getClusterModifiers, getCounterAV, getFireTNRoll, getInfantryDamageClassShift, getLargeCraftHeat, getParentBayHandler, getSalvoBonus, getTotalGlancingBlowFactor, getWeaponAttackAction, handleArtilleryDriftMarker, handleClearDamage, handlePartialCoverHit, infantryDamageClass, initHit, insertAttacks, isLowProfileGlancingBlow, isStrafing, isStrafingFirstShot, reportMiss, reportMiss, resolveInfantryDamageClass, restore, setAnnouncedEntityFiring, setDone, setGlancingBlowFlags, setParentBayHandler, setStrafing, setStrafingFirstShot, targetIgnoresHeatWeaponDamage, unitGainsPartialCoverFromWater, unitStickingOutOfBuildingMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface megamek.common.weapons.handlers.AttackHandler
getBuildingDamageAdjustment, producesReportThisPhase
-
Constructor Details
-
LRMSwarmHandler
public LRMSwarmHandler(ToHitData t, WeaponAttackAction w, Game g, TWGameManager m) throws EntityLoadingException - Throws:
EntityLoadingException
-
-
Method Details
-
handle
Description copied from class:WeaponHandlerhandle this weapons firing- Specified by:
handlein interfaceAttackHandler- Overrides:
handlein classMissileWeaponHandler- Parameters:
phase- The present game phasevPhaseReport- The reports list to add new reports to- Returns:
- a
booleanvalue indicating whether this should be kept or not
-
calcDamagePerHit
protected int calcDamagePerHit()Description copied from class:WeaponHandlerCalculate the damage per hit.- Overrides:
calcDamagePerHitin classLRMHandler- Returns:
- an
intrepresenting the damage dealt per hit.
-
handleSpecialMiss
-
calcHits
Description copied from class:WeaponHandlerCalculate the number of hits- Overrides:
calcHitsin classLRMHandler- Parameters:
vPhaseReport- - theVectorcontaining the phase report.- Returns:
- an
intcontaining the number of hits.
-