Package megamek.common.weapons.handlers
Class RACHandler
java.lang.Object
megamek.common.weapons.handlers.WeaponHandler
megamek.common.weapons.handlers.AmmoWeaponHandler
megamek.common.weapons.handlers.UltraWeaponHandler
megamek.common.weapons.handlers.RACHandler
- All Implemented Interfaces:
Serializable,AttackHandler
- Since:
- Oct 19, 2004
- See Also:
-
Field Summary
Fields inherited from class megamek.common.weapons.handlers.UltraWeaponHandler
howManyShotsFields 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 intcalculateNumClusterAero(Entity entityTarget) protected booleanprotected 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.UltraWeaponHandler
attemptToReloadWeapon, calcDamagePerHit, calcHits, reduceShotsLeftMethods inherited from class megamek.common.weapons.handlers.AmmoWeaponHandler
checkAmmo, doAmmoFeedProblemCheck, explodeRoundInBarrel, getNumberWeaponsMethods inherited from class megamek.common.weapons.handlers.WeaponHandler
absorbBuildingDamage, addGlancingBlowReports, addHeat, allShotsHit, announcedEntityFiring, applyGlancingBlowModifier, applyGlancingBlowModifier, calcAeroDamage, calcAttackValue, calcCapMissileAMSMod, calcCounterAV, calculateNumCluster, canEngageCapitalMissile, cares, checkLI, checkPDConditions, checkTerrain, getAttacker, getAttackerId, getBracketingMultiplier, getCapMisMod, getCapMissileAMSMod, getClusterModifiers, getCounterAV, getFireTNRoll, getLargeCraftHeat, 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
-
RACHandler
public RACHandler(ToHitData t, WeaponAttackAction w, Game g, TWGameManager m) throws EntityLoadingException - Throws:
EntityLoadingException
-
-
Method Details
-
doChecks
- Overrides:
doChecksin classUltraWeaponHandler- Parameters:
vPhaseReport- - AVectorcontaining the phase report.- Returns:
- a
booleanvalue indicating whether the attack misses because of a failed check.
-
useAmmo
protected void useAmmo()- Overrides:
useAmmoin classUltraWeaponHandler
-
usesClusterTable
protected boolean usesClusterTable()Description copied from class:WeaponHandlerDoes this attack use the cluster hit table? necessary to determine how Aero damage should be applied- Overrides:
usesClusterTablein classUltraWeaponHandler
-
calculateNumClusterAero
- Overrides:
calculateNumClusterAeroin classUltraWeaponHandler
-