Package megamek.common.battleValue
Class AeroBVCalculator
java.lang.Object
megamek.common.battleValue.BVCalculator
megamek.common.battleValue.HeatTrackingBVCalculator
megamek.common.battleValue.AeroBVCalculator
- Direct Known Subclasses:
LargeAeroBVCalculator
-
Nested Class Summary
Nested classes/interfaces inherited from class megamek.common.battleValue.BVCalculator
BVCalculator.AssembledAmmo -
Field Summary
FieldsFields inherited from class megamek.common.battleValue.BVCalculator
adjustedBV, baseBV, bvReport, defensiveValue, entity, frontAndRearDecided, hasBlueShield, hasTC, heatEfficiencyExceeded, heatSum, ignoreC3, ignoreSkill, ignoreTAG, isDrone, jumpMP, NO_HEAT, offensiveValue, REAR, runMP, switchRearAndFront, tagBV, TURRET, umuMP -
Method Summary
Modifier and TypeMethodDescriptionReturns a Predicate that determines if a weapon is counted as a front or nose arc weapon -ONLY- for the purpose of determining if the weapon BV of front weapons exceeds that of rear weapons on unit types that care about rear weapons.protected intprotected booleanisNominalRear(Mounted<?> weapon) Returns true when a weapon is to be counted and calculated as a rear weapon.protected intprotected voidprotected voidprotected voidprotected voidProcesses the sum of offensive and defensive battle rating and modifiers that affect this sum.protected voidReturns a Predicate that determines if a weapon is counted as a rear or aft arc weapon -ONLY- for the purpose of determining if the weapon BV of front weapons exceeds that of rear weapons on unit types that care about rear weapons.protected booleanvalidArmorLocation(int location) Returns true when the given location is valid for armor BV calculations.Methods inherited from class megamek.common.battleValue.HeatTrackingBVCalculator
countsAsExplosive, processWeapons, totalWeaponHeat, usesWeaponHeat, weaponHeatMethods inherited from class megamek.common.battleValue.BVCalculator
addTorsoMountedCockpit, adjustBV, ammoCounts, arcFactor, armorFactor, assembleAmmo, assembleMovementPoints, bvMultiplier, bvSkillMultiplier, calculateBaseBV, calculateBaseBV, calculateBV, calculateBV, calculateBV, countAsOffensiveWeapon, countMiscAsOffensiveWeapon, countsAsDefensiveEquipment, determineFront, equipmentDescriptor, fireControlModifier, getAmmoBV, getBVCalculator, getJumpingTMM, getOffensiveSpeedFactorMultiplier, getRunningTMM, getUmuTMM, isFrontFacingVGL, isNominalRearArc, isRearFacingVGL, offensiveEquipmentBV, offensiveSpeedFactor, processAmmo, processArmor, processBaseBV, processCalculations, processDefensiveEquipment, processDefensiveValue, processExternalStores, processOffensiveEquipment, processOffensiveTypeModifier, processOffensiveValue, processPreparation, processSpeedFactor, processTagBonus, processWeapon, processWeapon, processWeaponSection, processWeight, reset, retrieveBaseBV, retrieveBV, retrieveBVWithTag, setJumpMP, setRunMP, setUmuMP, tmmFactor, workingTAGCount
-
Field Details
-
aero
-
-
Method Details
-
processStructure
protected void processStructure()- Overrides:
processStructurein classBVCalculator
-
validArmorLocation
protected boolean validArmorLocation(int location) Description copied from class:BVCalculatorReturns true when the given location is valid for armor BV calculations. Returns true by default. Override to exclude locations, e.g. hull on AeroSpace.- Overrides:
validArmorLocationin classBVCalculator- Parameters:
location- The location to check- Returns:
- True when the given location must be considered for Armor BV
-
processExplosiveEquipment
protected void processExplosiveEquipment()- Overrides:
processExplosiveEquipmentin classHeatTrackingBVCalculator
-
processTypeModifier
protected void processTypeModifier()- Overrides:
processTypeModifierin classBVCalculator
-
processDefensiveFactor
protected void processDefensiveFactor()- Overrides:
processDefensiveFactorin classBVCalculator
-
heatEfficiency
protected int heatEfficiency()- Overrides:
heatEfficiencyin classBVCalculator- Returns:
- The unit's heat dissipation for BV purposes. Override as necessary.
-
isNominalRear
Description copied from class:BVCalculatorReturns true when a weapon is to be counted and calculated as a rear weapon. For units that deal with rear weapons this is usually true when the weapon is actually rear-facing but may be false when weapon facing is reversed (when the front weapons BV is smaller than the rear weapon BV). This method should rely on the switchRearAndFront field to decide the return value. switchRearAndFront is set before weapons are processed by the call toBVCalculator.determineFront(). By default, this returns false which is correct for units that do not deal with rear weapons such as ProtoMeks. This is overridden as necessary for units that deal with rear weapons (Mek, Aero, Tanks, but not large aerospace that use arcs).- Overrides:
isNominalRearin classBVCalculator- Parameters:
weapon- The Mounted equipment to check- Returns:
- True when the weapon is to be counted as if it was rear-facing
-
frontWeaponFilter
Description copied from class:BVCalculatorReturns a Predicate that determines if a weapon is counted as a front or nose arc weapon -ONLY- for the purpose of determining if the weapon BV of front weapons exceeds that of rear weapons on unit types that care about rear weapons. By default, returns true so that all weapons count safely as front weapons. Should be overridden for all unit types that account for rear-facing weapons. Does not need to be overridden for unit types that don't (such as ProtoMeks).- Overrides:
frontWeaponFilterin classBVCalculator- Returns:
- A Predicate identifying if a weapon counts as a front weapon (read above!)
-
rearWeaponFilter
Description copied from class:BVCalculatorReturns a Predicate that determines if a weapon is counted as a rear or aft arc weapon -ONLY- for the purpose of determining if the weapon BV of front weapons exceeds that of rear weapons on unit types that care about rear weapons. By default, returns false so that all weapons count safely as front weapons. Should be overridden for all unit types that account for rear-facing weapons. Does not need to be overridden for unit types that don't (such as ProtoMeks).- Overrides:
rearWeaponFilterin classBVCalculator- Returns:
- A Predicate identifying if a weapon counts as a front weapon (read above!)
-
processSummarize
protected void processSummarize()Description copied from class:BVCalculatorProcesses the sum of offensive and defensive battle rating and modifiers that affect this sum.- Overrides:
processSummarizein classBVCalculator
-
offensiveSpeedFactorMP
protected int offensiveSpeedFactorMP()- Overrides:
offensiveSpeedFactorMPin classBVCalculator- Returns:
- the MP value to use for the Offensive Speed Factor (TM p.316) for this unit.
-