Package megamek.common.battleValue
Class CombatVehicleBVCalculator
java.lang.Object
megamek.common.battleValue.BVCalculator
megamek.common.battleValue.CombatVehicleBVCalculator
-
Nested Class Summary
Nested classes/interfaces inherited from class megamek.common.battleValue.BVCalculator
BVCalculator.AssembledAmmo -
Field Summary
Fields 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 intprotected intprotected booleanisNominalRear(Mounted<?> weapon) Returns true when a weapon is to be counted and calculated as a rear weapon.protected intprotected voidprotected 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.Methods 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, getOffensiveSpeedFactorMultiplier, heatEfficiency, isFrontFacingVGL, isNominalRearArc, isRearFacingVGL, offensiveEquipmentBV, offensiveSpeedFactor, processAmmo, processArmor, processBaseBV, processCalculations, processDefensiveEquipment, processDefensiveFactor, processDefensiveValue, processExplosiveEquipment, processExternalStores, processOffensiveEquipment, processOffensiveTypeModifier, processOffensiveValue, processPreparation, processSpeedFactor, processStructure, processSummarize, processTagBonus, processWeapon, processWeapon, processWeapons, processWeaponSection, reset, retrieveBaseBV, retrieveBV, retrieveBVWithTag, setJumpMP, setRunMP, setUmuMP, tmmFactor, usesWeaponHeat, validArmorLocation, workingTAGCount
-
Method Details
-
getUmuTMM
protected int getUmuTMM()- Overrides:
getUmuTMMin classBVCalculator
-
getRunningTMM
protected int getRunningTMM()- Overrides:
getRunningTMMin classBVCalculator
-
getJumpingTMM
protected int getJumpingTMM()- Overrides:
getJumpingTMMin classBVCalculator
-
processTypeModifier
protected void processTypeModifier()- Overrides:
processTypeModifierin classBVCalculator
-
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!)
-
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!)
-
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
-
processWeight
protected void processWeight()- Overrides:
processWeightin 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.
-