Package megamek.common.actions.compute
Class ComputeAeroAttackerToHitMods
java.lang.Object
megamek.common.actions.compute.ComputeAeroAttackerToHitMods
- 
Method SummaryModifier and TypeMethodDescriptionstatic ToHitDatacompileAeroAttackerToHitMods(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- 
compileAeroAttackerToHitModspublic 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 current- Game
- attacker- The Entity making this attack
- target- The Targetable object being attacked
- targetableTargetType- The targetable object type
- toHit- The running total ToHitData for this WeaponAttackAction
- aimingAt- An int value representing the location being aimed at
- aimingMode- An int value that determines the reason aiming is allowed
- eiPilotUpgradeStatus- An int value representing the ei cockpit/pilot upgrade status
- weaponType- The WeaponType of the weapon being used
- weapon- The Mounted weapon being used
- ammoType- The AmmoType being used for this attack
- munition- Long indicating the munition type flag being used, if applicable
- isArtilleryIndirect- flag that indicates whether this is an indirect-fire artillery attack
- isFlakAttack- flag that indicates whether the attacker is using Flak against an airborne target
- isNemesisConfused- flag that indicates whether the attack is affected by an iNarc Nemesis pod
- isStrafing- flag that indicates whether this is an aero strafing attack
- usesAmmo- flag that indicates if the WeaponType being used is ammo-fed
 
 
-