Class InfantryWeapon

All Implemented Interfaces:
Serializable, ITechnology
Direct Known Subclasses:
InfantryArchaicAxeWeapon, InfantryArchaicBasicCrossbowWeapon, InfantryArchaicBlackjackWeapon, InfantryArchaicBladeArchaicSwordWeapon, InfantryArchaicBladeJoustingLanceWeapon, InfantryArchaicBladeZweihanderSwordWeapon, InfantryArchaicBokkenWeapon, InfantryArchaicCarbonReinforcedNailsWeapon, InfantryArchaicClanVibroSwordWeapon, InfantryArchaicCompoundBowWeapon, InfantryArchaicDaggerWeapon, InfantryArchaicDaikyuBowWeapon, InfantryArchaicDaoWeapon, InfantryArchaicDoubleStunStaffWeapon, InfantryArchaicHankyuBowWeapon, InfantryArchaicHatchetWeapon, InfantryArchaicHeavyCrossbowWeapon, InfantryArchaicImprovisedClubWeapon, InfantryArchaicISVibroSwordWeapon, InfantryArchaicKatanaWeapon, InfantryArchaicLongBowWeapon, InfantryArchaicMedusaWhipWeapon, InfantryArchaicMiniStunstickWeapon, InfantryArchaicMonowireWeapon, InfantryArchaicNeuralLashWeapon, InfantryArchaicNeuralWhipWeapon, InfantryArchaicNoDachiWeapon, InfantryArchaicNunchakuWeapon, InfantryArchaicPolearmWeapon, InfantryArchaicPrimitiveBowWeapon, InfantryArchaicShockStaffWeapon, InfantryArchaicShortBowWeapon, InfantryArchaicShurikenWeapon, InfantryArchaicSingleStunStaffWeapon, InfantryArchaicStaffWeapon, InfantryArchaicStunstickWeapon, InfantryArchaicSwordWeapon, InfantryArchaicVibroAxeWeapon, InfantryArchaicVibroBladeWeapon, InfantryArchaicVibroKatanaWeapon, InfantryArchaicVibroMaceWeapon, InfantryArchaicWakizashiWeapon, InfantryArchaicWhipWeapon, InfantryArchaicYumiBowWeapon, InfantryGrenadeInfernoWeapon, InfantryGrenadeMicroWeapon, InfantryGrenadeMiniInfernoWeapon, InfantryGrenadeMiniWeapon, InfantryGrenadeRAGWeapon, InfantryGrenadeStandardWeapon, InfantryLaserCarbineBrightStarL15, InfantryLaserPistolAA75L, InfantryLaserPistolAWAWilibyMk4LaserPistol, InfantryLaserPistolBR25, InfantryLaserPistolBrightStarL12, InfantryLaserPistolBrightStarL15, InfantryLaserPistolBrightStarL7, InfantryLaserPistolDarklightIVLaserPistol, InfantryLaserPistolKelvin000Lancer3MM, InfantryLaserPistolXingShan, InfantryLaserPistolXingShanER, InfantryLaserRifleDarkLightCLLight, InfantryLaserRifleDWSL5S, InfantryLaserRifleScorcherVIBlazerRifle, InfantryLaserRifleSyrtisFirebolt12Repaired, InfantryLaserRifleSyrtisFirebolt12Unrepaired, InfantryLaserRifleWolfBaronSunraker, InfantryLaserRifleYangLie, InfantryLaserSniperRifleDWSL5L, InfantryPistolAAGemini, InfantryPistolAlamo17, InfantryPistolAutoPistolNissanWeapon, InfantryPistolAutoPistolWeapon, InfantryPistolBlazerPistolWeapon, InfantryPistolCamdenHR7, InfantryPistolClanERLaserPistolWeapon, InfantryPistolClanGaussPistolWeapon, InfantryPistolClanPulseLaserPistolWeapon, InfantryPistolCoventryHandrocketGyrojetPistolWeapon, InfantryPistolDartGunWeapon, InfantryPistolDreamelDerringer, InfantryPistolFlamerPistolWeapon, InfantryPistolFlarePistolWeapon, InfantryPistolGyrojetPistolWeapon, InfantryPistolHawkEagleAutoPistolWeapon, InfantryPistolHCKP14, InfantryPistolHoldOutGyroJetPistolWeapon, InfantryPistolHoldOutLaserPistolWeapon, InfantryPistolHoldOutNeedlerPistolWeapon, InfantryPistolHoldOutPistolWeapon, InfantryPistolISPulseLaserPistolWeapon, InfantryPistolLaserPistolWeapon, InfantryPistolLemisonCombatRevolver, InfantryPistolMagnumAutoPistolWeapon, InfantryPistolMagnumRevolverWeapon, InfantryPistolMakeshiftPistolWeapon, InfantryPistolMandrakeGaussPistolWeapon, InfantryPistolMartialEagleMachinePistolWeapon, InfantryPistolMauserAutoPistolWeapon, InfantryPistolMauserNeedlerPistolWeapon, InfantryPistolMomoDeBaoyingSpecial, InfantryPistolMomoDeBaoyingStandard, InfantryPistolMPH45, InfantryPistolMydronAutoPistolWeapon, InfantryPistolNakjimaLaserPistolWeapon, InfantryPistolNambu380, InfantryPistolNambu480, InfantryPistolNambuAutoPistolWeapon, InfantryPistolNeedlerPistolWeapon, InfantryPistolPaintGunPistolWeapon, InfantryPistolRevolverWeapon, InfantryPistolRFWGalahad, InfantryPistolSeaEagleNeedlerPistolWeapon, InfantryPistolSerrek7994, InfantryPistolSerrek7994SF, InfantryPistolSerrekAutoPistolWeapon, InfantryPistolSMGGHTSpec7aWeapon, InfantryPistolSonicStunnerWeapon, InfantryPistolSpitballGasPistolWeapon, InfantryPistolSternsnachtPistolWeapon, InfantryPistolSternsnachtPythonAutoPistolWeapon, InfantryPistolStettaAutoPistolWeapon, InfantryPistolSturmEagleMK4M, InfantryPistolSturmEagleMK4P, InfantryPistolSunbeamLaserPistolWeapon, InfantryPistolSunbeamNovaLaserPistolWeapon, InfantryPistolTKEnforcerAutoPistolWeapon, InfantryPistolTranqGunWeapon, InfantryPistolType74DPistol, InfantryPistolType74PPistol, InfantryPistolVintageWeapon, InfantryPistolWhisper4Standard, InfantryPistolWhisper4Subsonic, InfantryPistolWhiteDwarfLaserPistolWeapon, InfantryPistolWolfM30, InfantryPistolYaNjingshe, InfantryProstheticBallisticWeapon, InfantryProstheticBladeWeapon, InfantryProstheticClimbingClawsWeapon, InfantryProstheticDartGunWeapon, InfantryProstheticLaserWeapon, InfantryProstheticNeedlerWeapon, InfantryProstheticNeedleWeapon, InfantryProstheticRumalGarroteWeapon, InfantryProstheticShockerWeapon, InfantryProstheticShotgunWeapon, InfantryProstheticSMGWeapon, InfantryProstheticSonicStunnerWeapon, InfantryProstheticVibroBladeWeapon, InfantryPulseLaserPistolMedusaIII, InfantryPulseLaserPistolMedusaIV, InfantryPulseLaserPistolNWW12, InfantryPulseLaserPistolRDISunSwarmPulsar, InfantryPulseLaserRifleDWSL5C, InfantryPulseLaserRifleGaul, InfantryPulseLaserRifleTirbuni, InfantryRifleAutoRifleWeapon, InfantryRifleBlazerRifleWeapon, InfantryRifleBoltActionWeapon, InfantryRifleClanERLaserWeapon, InfantryRifleClanMauserIICIASInfernoWeapon, InfantryRifleClanMauserIICIASWeapon, InfantryRifleClanPulseLaserWeapon, InfantryRifleEbonyAssaultLaserWeapon, InfantryRifleElephantGunWeapon, InfantryRifleFederatedBarrettM42BInfernoWeapon, InfantryRifleFederatedBarrettM42BWeapon, InfantryRifleFederatedBarrettM61ALaserInfernoWeapon, InfantryRifleFederatedBarrettM61ALaserWeapon, InfantryRifleFederatedLongWeapon, InfantryRifleGyrojetRifleWeapon, InfantryRifleGyroslugCarbineWeapon, InfantryRifleGyroslugRifleWeapon, InfantryRifleHeavyGyrojetGunWeapon, InfantryRifleImperatorAX22AssaultWeapon, InfantryRifleIntekLaserWeapon, InfantryRifleLaserWeapon, InfantryRifleMagnaLaserWeapon, InfantryRifleMakeshiftWeapon, InfantryRifleMarxXXLaserWeapon, InfantryRifleMauser1200LSSWeapon, InfantryRifleMauser960LaserWeapon, InfantryRifleMauserG150Weapon, InfantryRifleMaxellPL10LaserWeapon, InfantryRifleMGFlechetteNeedlerWeapon, InfantryRifleNeedlerWeapon, InfantryRiflePulseLaserWeapon, InfantryRifleShredderHeavyNeedlerWeapon, InfantryRifleStarKingGyroslugCarbineWeapon, InfantryRifleStrikerCarbineRifleWeapon, InfantryRifleSunbeamStarfireERLaserWeapon, InfantryRifleThunderstrokeIIWeapon, InfantryRifleThunderstrokeWeapon, InfantryRifleTKAssaultWeapon, InfantryRifleVintageWeapon, InfantryRifleVSPLaserWeapon, InfantryRifleZeusHeavyWeapon, InfantryShotgunAMIKeymaster15, InfantryShotgunAutomaticWeapon, InfantryShotgunAvengerCCWWeapon, InfantryShotgunAWAAS105, InfantryShotgunAWASS112, InfantryShotgunBuccaneerGelGunWeapon, InfantryShotgunByron15S, InfantryShotgunCeresCrowdbusterWeapon, InfantryShotgunCombatWeapon, InfantryShotgunCWIJianhuren, InfantryShotgunDaystarIC, InfantryShotgunDaystarIIC, InfantryShotgunDaystarIIIC, InfantryShotgunDaystarIIIM, InfantryShotgunDaystarIIM, InfantryShotgunDaystarIM, InfantryShotgunDaystarIVC, InfantryShotgunDaystarIVM, InfantryShotgunDaystarVC, InfantryShotgunDaystarVM, InfantryShotgunDokuhebi, InfantryShotgunDoubleBarrelWeapon, InfantryShotgunDPS305, InfantryShotgunDuckettA5, InfantryShotgunHastariIII, InfantryShotgunMarburg20, InfantryShotgunMarburg20M, InfantryShotgunMorriganStormsweeper, InfantryShotgunPumpActionWeapon, InfantryShotgunRisen15, InfantryShotgunSawedOffDoubleBarrelWeapon, InfantryShotgunSawedOffPumpActionWeapon, InfantryShotgunSDType31, InfantryShotgunSGM3, InfantryShotgunSGS9, InfantryShotgunSGS9E, InfantryShotgunWakazashiWeapon, InfantryShotgunWranglemanTriBarrel, InfantrySMGAWAStarlingMk7, InfantrySMGAWAStarlingMk7LB, InfantrySMGAWAStarlingMk7SF, InfantrySMGBlackfieldScorpionMk65, InfantrySMGBoudicca4, InfantrySMGBoudicca5, InfantrySMGBoudicca7, InfantrySMGClanGaussWeapon, InfantrySMGDSKLargoSGA, InfantrySMGDSKLargoSGB, InfantrySMGGuntherMP20Weapon, InfantrySMGHouwei, InfantrySMGHunkleV, InfantrySMGImperator2894A1Weapon, InfantrySMGJ15Hagel, InfantrySMGJ17Hagel, InfantrySMGJinseYanjingsheAPRounds, InfantrySMGJinseYanjingsheStandard, InfantrySMGKA23Weapon, InfantrySMGNambuTypeS124, InfantrySMGRFWBedivere, InfantrySMGRorynexRM3XXIWeapon, InfantrySMGRuganWeapon, InfantrySMGSpartacus, InfantrySMGSturmHornetMkIII, InfantrySMGSupekuta, InfantrySMGTiberius, InfantrySMGWC2, InfantrySMGWC6, InfantrySMGWeapon, InfantrySMGWolfBarronA7, InfantrySniperRifleBartonAMRAntiArmor, InfantrySniperRifleBartonAMRStandard, InfantrySniperRifleFNFJ12DarkCaste, InfantrySniperRifleFNFJ12SLDF, InfantrySniperRifleHammelMarksman, InfantrySniperRifleLancelotMkV, InfantrySniperRifleLRS53SniperRifle, InfantrySniperRifleMinolta9000Weapon, InfantrySniperRiflePraetorianS3, InfantrySniperRiflePraetorianS5, InfantrySniperRifleRadiumLaserWeapon, InfantrySniperRifleSairentosutomu, InfantrySniperRifleSniperWeapon, InfantrySniperRifleSR17SunsKiller, InfantrySniperRifleThorsHammer, InfantrySniperRifleWilimtonRS14, InfantrySniperRifleWilimtonRS17Stripped, InfantrySniperRifleYuanLing, InfantrySniperStalkerWeapon, InfantrySupportClanBearhunterAutocannonWeapon, InfantrySupportClanERHeavyLaserWeapon, InfantrySupportClanERLaserWeapon, InfantrySupportClanSemiPortableERLaserWeapon, InfantrySupportClanSemiPortableHeavyLaserWeapon, InfantrySupportClanSemiPortablePulseLaserWeapon, InfantrySupportDavidLightGaussRifleWeapon, InfantrySupportDragonsbaneDisposablePulseLaserWeapon, InfantrySupportERHeavyLaserWeapon, InfantrySupportERLaserWeapon, InfantrySupportFiredrakeNeedlerWeapon, InfantrySupportGrandMaulerGaussCannonWeapon, InfantrySupportGrenadeLauncherAutoInfernoWeapon, InfantrySupportGrenadeLauncherAutoWeapon, InfantrySupportGrenadeLauncherCompactWeapon, InfantrySupportGrenadeLauncherHeavyAutoInfernoWeapon, InfantrySupportGrenadeLauncherHeavyAutoWeapon, InfantrySupportGrenadeLauncherInfernoWeapon, InfantrySupportGrenadeLauncherWeapon, InfantrySupportGungnirHeavyGaussWeapon, InfantrySupportHeavyFlamerWeapon, InfantrySupportHeavyGrenadeLauncherInfernoWeapon, InfantrySupportHeavyGrenadeLauncherWeapon, InfantrySupportHeavyLaserWeapon, InfantrySupportHeavyPPCWeapon, InfantrySupportHeavyPulseLaserWeapon, InfantrySupportHellboreAssaultLaserWeapon, InfantrySupportKingDavidLightGaussRifleWeapon, InfantrySupportLaserUltraHeavyWeapon, InfantrySupportLaserWeapon, InfantrySupportLRMInfernoWeapon, InfantrySupportLRMWeapon, InfantrySupportMagPulseHarpoonWeapon, InfantrySupportMagshotGaussRifleWeapon, InfantrySupportMGLightWeapon, InfantrySupportMGPortableWeapon, InfantrySupportMGSemiPortableWeapon, InfantrySupportMGSupportWeapon, InfantrySupportMGVintageWeapon, InfantrySupportMk1LightAAWeapon, InfantrySupportMk2PortableAAWeapon, InfantrySupportMortarHeavyInfernoWeapon, InfantrySupportMortarHeavyWeapon, InfantrySupportMortarLightInfernoWeapon, InfantrySupportMortarLightWeapon, InfantrySupportOneShotMRMInfernoWeapon, InfantrySupportOneShotMRMWeapon, InfantrySupportPortableAutocannonWeapon, InfantrySupportPortableFlamerWeapon, InfantrySupportPortablePlasmaWeapon, InfantrySupportPulseLaserWeapon, InfantrySupportRecoillessRifleHeavyInfernoWeapon, InfantrySupportRecoillessRifleHeavyWeapon, InfantrySupportRecoillessRifleLightInfernoWeapon, InfantrySupportRecoillessRifleLightWeapon, InfantrySupportRecoillessRifleMediumInfernoWeapon, InfantrySupportRecoillessRifleMediumWeapon, InfantrySupportRocketLauncherLAWWeapon, InfantrySupportRocketLauncherVLAWWeapon, InfantrySupportSemiPortableLaserWeapon, InfantrySupportSemiPortablePPCWeapon, InfantrySupportSnubNoseSupportPPCWeapon, InfantrySupportSRMHeavyInfernoWeapon, InfantrySupportSRMHeavyWeapon, InfantrySupportSRMLightInfernoWeapon, InfantrySupportSRMLightWeapon, InfantrySupportSRMStandardInfernoWeapon, InfantrySupportSRMStandardWeapon, InfantrySupportTAGWeapon, InfantrySupportTsunamiHeavyGaussRifleWeapon, InfantrySupportVintageGatlingGunWeapon, InfantrySupportVintageMiniGunWeapon, InfantrySupportWireGuidedMissileWeapon, InfantryTWFlamerWeapon

public abstract class InfantryWeapon extends Weapon
Since:
Sep 24, 2004
See Also:
  • Field Details

    • infantryDamage

      protected double infantryDamage
    • infantryRange

      protected int infantryRange
    • crew

      protected int crew
    • ammoWeight

      protected double ammoWeight
    • ammoCost

      protected int ammoCost
    • shots

      protected int shots
    • bursts

      protected int bursts
  • Constructor Details

    • InfantryWeapon

      public InfantryWeapon()
  • Method Details

    • getInfantryDamage

      public double getInfantryDamage()
    • getInfantryRange

      public int getInfantryRange()
    • getShortAV

      public double getShortAV()
      Overrides:
      getShortAV in class WeaponType
    • getMedAV

      public double getMedAV()
      Overrides:
      getMedAV in class WeaponType
    • getLongAV

      public double getLongAV()
      Overrides:
      getLongAV in class WeaponType
    • getExtAV

      public double getExtAV()
      Overrides:
      getExtAV in class WeaponType
    • getRoundShortAV

      public int getRoundShortAV()
      Overrides:
      getRoundShortAV in class WeaponType
    • getRoundMedAV

      public int getRoundMedAV()
      Overrides:
      getRoundMedAV in class WeaponType
    • getRoundLongAV

      public int getRoundLongAV()
      Overrides:
      getRoundLongAV in class WeaponType
    • getRoundExtAV

      public int getRoundExtAV()
      Overrides:
      getRoundExtAV in class WeaponType
    • getMaxRange

      public int getMaxRange(WeaponMounted weapon)
      Overrides:
      getMaxRange in class WeaponType
    • getMaxRange

      public int getMaxRange(WeaponMounted weapon, AmmoMounted ammo)
      Overrides:
      getMaxRange in class WeaponType
    • getCrew

      public int getCrew()
    • getLongRange

      public int getLongRange()
      The long range of this weapon type. Infantry weapons calculate ranges based on the "infantry range" value rather than explicit short/long/medium ranges
      Overrides:
      getLongRange in class WeaponType
    • getExtremeRange

      public int getExtremeRange()
      The extreme range of this weapon type. Infantry weapons calculate ranges based on the "infantry range" value rather than explicit short/long/medium ranges
      Overrides:
      getExtremeRange in class WeaponType
    • getAmmoWeight

      public double getAmmoWeight()
      Returns:
      The weight of an ammo clip in tons
    • getShots

      public int getShots()
      Returns:
      The number of shots in an ammo clip
    • getBursts

      public int getBursts()
      Returns:
      The number of bursts in an ammo clip.
    • getAmmoCost

      public int getAmmoCost()
      Returns:
      The cost of an ammo clip in C-bills
    • hasInfernoAmmo

      public boolean hasInfernoAmmo()
      Check for whether small support vehicles have an option of standard or inferno munitions for this weapon. Returns true for both the inferno and the standard variant.
      Returns:
      Whether the weapon has alternate inferno ammo
    • getInfernoVariant

      public InfantryWeapon getInfernoVariant()
      For weapons that can use inferno ammo, returns the inferno version. If there is no inferno version or this is the inferno version, returns this.
      Returns:
      The inferno ammo variant of this weapon
    • getNonInfernoVariant

      public InfantryWeapon getNonInfernoVariant()
      For weapons that can use inferno ammo, returns the standard ammo version. If there is no standard version or this is the standard version, returns this.
      Returns:
      The standard ammo variant of this weapon
    • getSupportVeeSlots

      public int getSupportVeeSlots(Entity entity)
      Overrides:
      getSupportVeeSlots in class EquipmentType
    • getCorrectHandler

      @Nullable public AttackHandler getCorrectHandler(ToHitData toHit, WeaponAttackAction waa, Game game, TWGameManager manager)
      Overrides:
      getCorrectHandler in class Weapon
    • adaptToGameOptions

      public void adaptToGameOptions(IGameOptions gameOptions)
      Description copied from class: Weapon
      Adapt the weapon type to the Game Options such as PPC Field Inhibitors or Dial Down Damage, usually adding or removing modes. When overriding this in a weapon subclass, call super()!
      Overrides:
      adaptToGameOptions in class Weapon
      Parameters:
      gameOptions - The GameOptions (game.getOptions())
    • isFlameBased

      public boolean isFlameBased()
    • getYamlData

      public Map<String,Object> getYamlData()
      Description copied from class: EquipmentType
      Constructs a map containing the YAML-serializable data for this equipment type. Subclasses should override this method to add type-specific data.
      Overrides:
      getYamlData in class WeaponType
      Returns:
      A map containing the YAML-serializable data for this equipment type.
    • canBeMountedOnBaDwp

      public boolean canBeMountedOnBaDwp()
      Overrides:
      canBeMountedOnBaDwp in class WeaponType
      Returns:
      True if this equipment type can be mounted on a BattleArmor Detachable Weapon Pack, TO:AUE p.99