Package megamek.common.actions.compute
Class ComputeAeroAttackerToHitMods
java.lang.Object
megamek.common.actions.compute.ComputeAeroAttackerToHitMods
-
Method Summary
Modifier and TypeMethodDescriptionstatic ToHitData
compileAeroAttackerToHitMods
(Game game, Entity attacker, Targetable target, int targetableTargetType, ToHitData toHit, int aimingAt, AimingMode aimingMode, int eiPilotUpgradeStatus, WeaponType weaponType, WeaponMounted weapon, AmmoType ammoType, EnumSet<AmmoType.Munitions> munition, boolean isArtilleryIndirect, boolean isFlakAttack, boolean isNemesisConfused, boolean isStrafing, boolean usesAmmo) Convenience method that compiles the ToHit modifiers applicable to the attacker's condition, if the attacker is an aero Attacker has damaged sensors? You'll find that here.
-
Method Details
-
compileAeroAttackerToHitMods
public static ToHitData compileAeroAttackerToHitMods(Game game, Entity attacker, Targetable target, int targetableTargetType, ToHitData toHit, int aimingAt, AimingMode aimingMode, int eiPilotUpgradeStatus, WeaponType weaponType, WeaponMounted weapon, AmmoType ammoType, EnumSet<AmmoType.Munitions> munition, boolean isArtilleryIndirect, boolean isFlakAttack, boolean isNemesisConfused, boolean isStrafing, boolean usesAmmo) Convenience method that compiles the ToHit modifiers applicable to the attacker's condition, if the attacker is an aero Attacker has damaged sensors? You'll find that here. Defender's a superheavy mek? Using a weapon with a TH penalty? Those are in other methods.- Parameters:
game
- The currentGame
attacker
- The Entity making this attacktarget
- The Targetable object being attackedtargetableTargetType
- The targetable object typetoHit
- The running total ToHitData for this WeaponAttackActionaimingAt
- An int value representing the location being aimed ataimingMode
- An int value that determines the reason aiming is allowedeiPilotUpgradeStatus
- An int value representing the ei cockpit/pilot upgrade statusweaponType
- The WeaponType of the weapon being usedweapon
- The Mounted weapon being usedammoType
- The AmmoType being used for this attackmunition
- Long indicating the munition type flag being used, if applicableisArtilleryIndirect
- flag that indicates whether this is an indirect-fire artillery attackisFlakAttack
- flag that indicates whether the attacker is using Flak against an airborne targetisNemesisConfused
- flag that indicates whether the attack is affected by an iNarc Nemesis podisStrafing
- flag that indicates whether this is an aero strafing attackusesAmmo
- flag that indicates if the WeaponType being used is ammo-fed
-