Package megamek.common.weapons.handlers
Class EnergyWeaponHandler
java.lang.Object
megamek.common.weapons.handlers.WeaponHandler
megamek.common.weapons.handlers.EnergyWeaponHandler
- All Implemented Interfaces:
Serializable,AttackHandler
- Direct Known Subclasses:
BombastLaserWeaponHandler,CenturionWeaponSystemHandler,HyperLaserHandler,PlasmaMFUKWeaponHandler,PPCHandler,PrototypeLaserHandler,PulseLaserWeaponHandler,ReengineeredLaserWeaponHandler,SmallPulseLaserPrototypeHandler,TSEMPHandler,VariableSpeedPulseLaserWeaponHandler
- See Also:
-
Field Summary
Fields 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
ConstructorsConstructorDescriptionEnergyWeaponHandler(ToHitData toHit, WeaponAttackAction waa, Game g, TWGameManager m) -
Method Summary
Modifier and TypeMethodDescriptionprotected intCalculate the damage per hit.protected booleanMethods inherited from class megamek.common.weapons.handlers.WeaponHandler
absorbBuildingDamage, addGlancingBlowReports, addHeat, allShotsHit, announcedEntityFiring, appliesAttackValueInGroups, applyEntityDamage, applyExternalHeat, applyGlancingBlowModifier, applyGlancingBlowModifier, applyHeatOnStrike, applyPainShuntModifier, bracketingMultiplier, calcAeroDamage, calcAttackValue, calcCapMissileAMSMod, calcCounterAV, calcHits, calculateNumCluster, calculateNumClusterAero, canEngageCapitalMissile, cares, checkLI, checkPDConditions, checkTerrain, damagePerHitAgainst, directBlowDamageAtTargetScale, doAmmoFeedProblemCheck, externalHeatReport, getAttacker, getAttackerId, getAttackValueBonus, getBracketingMultiplier, getCapMisMod, getCapMissileAMSMod, getClusterModifiers, getCounterAV, getFireTNRoll, getInfantryDamageClassShift, getLargeCraftHeat, getNumberWeapons, getParentBayHandler, getReachableAimedLocation, getSalvoBonus, getTotalGlancingBlowFactor, getWeaponAttackAction, handle, handleArtilleryDriftMarker, handleBuildingDamage, handleClearDamage, handleClearDamage, handleEntityDamage, handleIgnitionDamage, handlePartialCoverHit, handleSpecialMiss, heatReport, hitStrikesPartialCover, infantryDamageClass, initHit, insertAttacks, isLowProfileGlancingBlow, isStrafing, isStrafingFirstShot, isThunderBolt, reportMiss, reportMiss, resolveInfantryDamageClass, restore, setAMSBayReportingFlag, setAnnouncedEntityFiring, setDone, setGlancingBlowFlags, setParentBayHandler, setPDBayReportingFlag, setStrafing, setStrafingFirstShot, specialResolution, targetIgnoresHeatWeaponDamage, unitGainsPartialCoverFromWater, unitStickingOutOfBuilding, useAmmo, usesClusterTable, usesStandardScaleBayDamageMethods 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
-
EnergyWeaponHandler
public EnergyWeaponHandler(ToHitData toHit, WeaponAttackAction waa, Game g, TWGameManager m) throws EntityLoadingException - Throws:
EntityLoadingException
-
-
Method Details
-
doChecks
- Overrides:
doChecksin classWeaponHandler- Parameters:
vPhaseReport- - AVectorcontaining the phase report.- Returns:
- a
booleanvalue indicating whether the attack misses because of a failed check.
-
calcDamagePerHit
protected int calcDamagePerHit()Description copied from class:WeaponHandlerCalculate the damage per hit.- Overrides:
calcDamagePerHitin classWeaponHandler- Returns:
- an
intrepresenting the damage dealt per hit.
-