Package megamek.common.weapons
Class MekMortarFlareHandler
java.lang.Object
megamek.common.weapons.WeaponHandler
megamek.common.weapons.AmmoWeaponHandler
megamek.common.weapons.MekMortarFlareHandler
- 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
ConstructorsConstructorDescription -
Method Summary
Modifier and TypeMethodDescriptionprotected int
Calculate the damage per hit.boolean
handle this weapons firingMethods 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, calcAttackValue, calcCapMissileAMSMod, calcCounterAV, calcHits, calcnCluster, calcnClusterAero, canEngageCapitalMissile, cares, checkLI, checkPDConditions, checkTerrain, getAttacker, getAttackerId, getBracketingMultiplier, getCapMisMod, getCapMissileAMSMod, getClusterModifiers, getCounterAV, getFireTNRoll, getLargeCraftHeat, getParentBayHandler, getSalvoBonus, getTotalGlancingBlowFactor, getWaa, handleArtilleryDriftMarker, handleBuildingDamage, handleClearDamage, handleClearDamage, handleEntityDamage, handleIgnitionDamage, handlePartialCoverHit, handleSpecialMiss, initHit, insertAttacks, isLowProfileGlancingBlow, isStrafing, isStrafingFirstShot, isTbolt, reportMiss, reportMiss, restore, setAMSBayReportingFlag, setAnnouncedEntityFiring, setDone, setGlancingBlowFlags, setParentBayHandler, setPDBayReportingFlag, setStrafing, setStrafingFirstShot, specialResolution, unitGainsPartialCoverFromWater, unitStickingOutOfBuilding, usesClusterTable
-
Constructor Details
-
MekMortarFlareHandler
-
-
Method Details
-
calcDamagePerHit
protected int calcDamagePerHit()Description copied from class:WeaponHandler
Calculate the damage per hit.- Overrides:
calcDamagePerHit
in classWeaponHandler
- Returns:
- an
int
representing the damage dealt per hit.
-
handle
Description copied from class:WeaponHandler
handle this weapons firing- Specified by:
handle
in interfaceAttackHandler
- Overrides:
handle
in classWeaponHandler
- Returns:
- a
boolean
value indicating whether this should be kept or not
-