Package megamek.common.weapons
Class LBXHandler
java.lang.Object
megamek.common.weapons.WeaponHandler
megamek.common.weapons.AmmoWeaponHandler
megamek.common.weapons.LBXHandler
- All Implemented Interfaces:
Serializable
,AttackHandler
- Direct Known Subclasses:
ACFlakHandler
,CLLBXPrototypeHandler
,MPodHandler
,PrototypeLBXHandler
- 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected int
Calculate the attack value based on rangeprotected int
Calculate the damage per hit.protected int
Calculate the number of hitsprotected boolean
Does this attack use the cluster hit table? necessary to determine how Aero damage should be appliedMethods 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, calcCapMissileAMSMod, calcCounterAV, calcnCluster, calcnClusterAero, canEngageCapitalMissile, cares, checkLI, checkPDConditions, checkTerrain, getAttacker, getAttackerId, getBracketingMultiplier, getCapMisMod, getCapMissileAMSMod, getClusterModifiers, getCounterAV, getFireTNRoll, getLargeCraftHeat, getParentBayHandler, getSalvoBonus, getTotalGlancingBlowFactor, getWaa, handle, 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
-
Constructor Details
-
LBXHandler
- Parameters:
t
-w
-g
-m
-
-
-
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.
-
calcAttackValue
protected int calcAttackValue()Calculate the attack value based on range- Overrides:
calcAttackValue
in classWeaponHandler
- Returns:
- an
int
representing the attack value at that range.
-
calcHits
Description copied from class:WeaponHandler
Calculate the number of hits- Overrides:
calcHits
in classWeaponHandler
- Parameters:
vPhaseReport
- - theVector
containing the phase report.- Returns:
- an
int
containing the number of hits.
-
usesClusterTable
protected boolean usesClusterTable()Description copied from class:WeaponHandler
Does this attack use the cluster hit table? necessary to determine how Aero damage should be applied- Overrides:
usesClusterTable
in classWeaponHandler
-