Package megamek.common.weapons.handlers
Class SpaceBombAttackHandler
java.lang.Object
megamek.common.weapons.handlers.WeaponHandler
megamek.common.weapons.handlers.SpaceBombAttackHandler
- All Implemented Interfaces:
Serializable,AttackHandler
- Since:
- Sep 23, 2004
- 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
ConstructorsConstructorDescriptionSpaceBombAttackHandler(ToHitData toHit, WeaponAttackAction weaponAttackAction, Game game, TWGameManager twGameManager) -
Method Summary
Modifier and TypeMethodDescriptionprotected intCalculate the attack value based on rangeprotected voiduseAmmo()protected booleanDoes this attack use the cluster hit table? necessary to determine how Aero damage should be appliedMethods inherited from class megamek.common.weapons.handlers.WeaponHandler
absorbBuildingDamage, addGlancingBlowReports, addHeat, allShotsHit, announcedEntityFiring, applyGlancingBlowModifier, applyGlancingBlowModifier, calcAeroDamage, calcCapMissileAMSMod, calcCounterAV, calcDamagePerHit, calcHits, 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, 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
-
SpaceBombAttackHandler
public SpaceBombAttackHandler(ToHitData toHit, WeaponAttackAction weaponAttackAction, Game game, TWGameManager twGameManager) throws EntityLoadingException - Parameters:
toHit-ToHitDataObjectweaponAttackAction-WeaponAttackActionObjectgame-GameObjecttwGameManager-TWGameManagerObject- Throws:
EntityLoadingException
-
-
Method Details
-
calcAttackValue
protected int calcAttackValue()Calculate the attack value based on range- Overrides:
calcAttackValuein classWeaponHandler- Returns:
- an
intrepresenting the attack value at that range.
-
usesClusterTable
protected boolean usesClusterTable()Does this attack use the cluster hit table? necessary to determine how Aero damage should be applied- Overrides:
usesClusterTablein classWeaponHandler
-
useAmmo
protected void useAmmo()- Overrides:
useAmmoin classWeaponHandler
-