megamek.common.weapons.infantry
Class InfantryWeapon

java.lang.Object
  extended by megamek.common.EquipmentType
      extended by megamek.common.WeaponType
          extended by megamek.common.weapons.Weapon
              extended by megamek.common.weapons.infantry.InfantryWeapon
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
InfantryArchaicAxeWeapon, InfantryArchaicBasicCrossbowWeapon, InfantryArchaicBlackjackWeapon, InfantryArchaicBokkenWeapon, InfantryArchaicCarbonReinforcedNailsWeapon, InfantryArchaicClanVibroSwordWeapon, InfantryArchaicCompoundBowWeapon, InfantryArchaicDaggerWeapon, InfantryArchaicDaikyuBowWeapon, InfantryArchaicDaoWeapon, InfantryArchaicDoubleStunStaffWeapon, InfantryArchaicHankyuBowWeapon, InfantryArchaicHatchetWeapon, InfantryArchaicHeavyCrossbowWeapon, InfantryArchaicImprovisedClubWeapon, InfantryArchaicKatanaWeapon, InfantryArchaicLongBowWeapon, InfantryArchaicMedusaWhipWeapon, InfantryArchaicMiniStunstickWeapon, InfantryArchaicMonowireWeapon, InfantryArchaicNeuralLashWeapon, InfantryArchaicNeuralWhipWeapon, InfantryArchaicNoDachiWeapon, InfantryArchaicNunchakuWeapon, InfantryArchaicPolearmWeapon, InfantryArchaicShortBowWeapon, InfantryArchaicShurikenWeapon, InfantryArchaicSingleStunStaffWeapon, InfantryArchaicStaffWeapon, InfantryArchaicStunstickWeapon, InfantryArchaicSwordWeapon, InfantryArchaicVibroAxeWeapon, InfantryArchaicVibroBladeWeapon, InfantryArchaicVibroKatanaWeapon, InfantryArchaicVibroSwordWeapon, InfantryArchaicWakizashiWeapon, InfantryArchaicWhipWeapon, InfantryGrenadeInfernoWeapon, InfantryGrenadeMicroWeapon, InfantryGrenadeMiniInfernoWeapon, InfantryGrenadeMiniWeapon, InfantryGrenadeRAGWeapon, InfantryGrenadeStandardWeapon, InfantryInfernoSRMWeapon, InfantryLightSRMWeapon, InfantryLRMWeapon, InfantryPistolAutoPistolWeapon, InfantryPistolBlazerPistolWeapon, InfantryPistolClanERLaserPistolWeapon, InfantryPistolClanGaussPistolWeapon, InfantryPistolClanPulseLaserPistolWeapon, InfantryPistolCoventryHandrocketGyrojetPistolWeapon, InfantryPistolDartGunWeapon, InfantryPistolFlamerPistolWeapon, InfantryPistolFlarePistolWeapon, InfantryPistolGyrojetPistolWeapon, InfantryPistolHawkEagleAutoPistolWeapon, InfantryPistolHoldoutGyrojetPistolWeapon, InfantryPistolHoldOutLaserPistolWeapon, InfantryPistolHoldoutNeedlerPistolWeapon, InfantryPistolHoldoutPistolWeapon, InfantryPistolLaserPistolWeapon, InfantryPistolMagnumAutoPistolWeapon, InfantryPistolMagnumRevolverWeapon, InfantryPistolMakeshiftPistolWeapon, InfantryPistolMandrakeGaussPistolWeapon, InfantryPistolMartialEagleMachinePistolWeapon, InfantryPistolMauserAutoPistolWeapon, InfantryPistolMauserNeedlerPistolWeapon, InfantryPistolMydronAutoPistolWeapon, InfantryPistolNakjimaLaserPistolWeapon, InfantryPistolNambuAutoPistolWeapon, InfantryPistolNeedlerPistolWeapon, InfantryPistolPaintGunPistolWeapon, InfantryPistolPulseLaserPistolWeapon, InfantryPistolRevolverWeapon, InfantryPistolSeaEagleNeedlerPistolWeapon, InfantryPistolSerrekAutoPistolWeapon, InfantryPistolSonicStunnerWeapon, InfantryPistolSpitballGasPistolWeapon, InfantryPistolSternsnachtPistolWeapon, InfantryPistolSternsnachtPythonAutoPistolWeapon, InfantryPistolStettaAutoPistolWeapon, InfantryPistolSunbeamLaserPistolWeapon, InfantryPistolSunbeamNovaLaserPistolWeapon, InfantryPistolTKEnforcerAutoPistolWeapon, InfantryPistolTranqGunWeapon, InfantryPistolWhiteDwarfLaserPistolWeapon, InfantryPortableMGWeapon, InfantryRifleAutoRifleWeapon, InfantryRifleBlazerRifleWeapon, InfantryRifleBoltActionSniperWeapon, InfantryRifleBoltActionWeapon, InfantryRifleClanERLaserWeapon, InfantryRifleClanMauserIICIASInfernoWeapon, InfantryRifleClanMauserIICIASWeapon, InfantryRifleClanPulseLaserWeapon, InfantryRifleEbonyAssaultLaserWeapon, InfantryRifleElephantGunWeapon, InfantryRifleFederatedBarrettM42BInfernoWeapon, InfantryRifleFederatedBarrettM42BWeapon, InfantryRifleFederatedBarrettM61ALaserInfernoWeapon, InfantryRifleFederatedBarrettM61ALaserWeapon, InfantryRifleFederatedLongWeapon, InfantryRifleGyrojetWeapon, InfantryRifleGyroslugCarbineWeapon, InfantryRifleGyroslugRifleWeapon, InfantryRifleHeavyGyrojetGunWeapon, InfantryRifleImperatorAX22AssaultWeapon, InfantryRifleIntekLaserWeapon, InfantryRifleLaserWeapon, InfantryRifleMagnaLaserWeapon, InfantryRifleMakeshiftWeapon, InfantryRifleMarxXXLaserWeapon, InfantryRifleMauser1200LSSWeapon, InfantryRifleMauser960LaserWeapon, InfantryRifleMauserG150Weapon, InfantryRifleMaxellPL10LaserWeapon, InfantryRifleMGFlechetteNeedlerWeapon, InfantryRifleMinolta9000Weapon, InfantryRifleNeedlerWeapon, InfantryRiflePulseLaserWeapon, InfantryRifleRadiumLaserSniperWeapon, InfantryRifleShredderHeavyNeedlerWeapon, InfantryRifleStarKingGyroslugCarbineWeapon, InfantryRifleSunbeamStarfireERLaserWeapon, InfantryRifleThunderstrokeIIWeapon, InfantryRifleThunderstrokeWeapon, InfantryRifleTKAssaultWeapon, InfantryRifleZeusHeavyWeapon, InfantryShotgunAutomaticWeapon, InfantryShotgunAvengerCCWWeapon, InfantryShotgunBuccaneerGelGunWeapon, InfantryShotgunCeresCrowdbusterWeapon, InfantryShotgunCombatWeapon, InfantryShotgunDoubleBarrelWeapon, InfantryShotgunPumpActionWeapon, InfantryShotgunSawnoffDoubleBarrelWeapon, InfantryShotgunSawnoffPumpActionWeapon, InfantrySMGClanGaussWeapon, InfantrySMGGuntherMP20Weapon, InfantrySMGImperator2894A1Weapon, InfantrySMGKA23SubgunWeapon, InfantrySMGRorynexRM3XXIWeapon, InfantrySMGRuganWeapon, InfantrySMGWeapon, InfantrySupportAutoGrenadeLauncherInfernoWeapon, InfantrySupportAutoGrenadeLauncherWeapon, InfantrySupportClanBearhunterAutocannonWeapon, InfantrySupportClanERHeavyLaserWeapon, InfantrySupportClanERLaserWeapon, InfantrySupportClanSemiPortableERLaserWeapon, InfantrySupportClanSemiPortableHeavyLaserWeapon, InfantrySupportClanSemiPortablePulseLaserWeapon, InfantrySupportCompactGrenadeLauncherWeapon, InfantrySupportDavidLightGaussRifleWeapon, InfantrySupportDragonsbaneDisposablePulseLaserWeapon, InfantrySupportERHeavyLaserWeapon, InfantrySupportERLaserWeapon, InfantrySupportFiredrakeNeedlerWeapon, InfantrySupportGrandMaulerGaussCannonWeapon, InfantrySupportGrenadeLauncherInfernoWeapon, InfantrySupportGrenadeLauncherWeapon, InfantrySupportHeavyAutoGrenadeLauncherInfernoWeapon, InfantrySupportHeavyAutoGrenadeLauncherWeapon, InfantrySupportHeavyFlamerWeapon, InfantrySupportHeavyGrenadeLauncherInfernoWeapon, InfantrySupportHeavyGrenadeLauncherWeapon, InfantrySupportHeavyLaserWeapon, InfantrySupportHeavyMachineGunWeapon, InfantrySupportHeavyMortarInfernoWeapon, InfantrySupportHeavyMortarWeapon, InfantrySupportHeavyPPCWeapon, InfantrySupportHeavyPulseLaserWeapon, InfantrySupportHeavyRecoillessRifleInfernoWeapon, InfantrySupportHeavyRecoillessRifleWeapon, InfantrySupportHeavySRMWeapon, InfantrySupportHellboreAssaultLaserWeapon, InfantrySupportKingDavidLightGaussRifleWeapon, InfantrySupportLaserWeapon, InfantrySupportLAWWeapon, InfantrySupportLightMachineGunWeapon, InfantrySupportLightMortarInfernoWeapon, InfantrySupportLightMortarWeapon, InfantrySupportLightRecoillessRifleInfernoWeapon, InfantrySupportLightRecoillessRifleWeapon, InfantrySupportMagshotGaussRifleWeapon, InfantrySupportMediumRecoillessRifleInfernoWeapon, InfantrySupportMediumRecoillessRifleWeapon, InfantrySupportMk1LightAAWeapon, InfantrySupportMk2PortableAAWeapon, InfantrySupportOneShotMRMWeapon, InfantrySupportPortableAutocannonWeapon, InfantrySupportPortableFlamerWeapon, InfantrySupportPortablePlasmaWeapon, InfantrySupportPortablePPCWeapon, InfantrySupportPulseLaserWeapon, InfantrySupportSemiPortableLaserWeapon, InfantrySupportSemiPortableMachineGunWeapon, InfantrySupportStandardSRMWeapon, InfantrySupportTsunamiHeavyGaussRifleWeapon, InfantrySupportVLAWWeapon, InfantryTWFlamerWeapon

public abstract class InfantryWeapon
extends Weapon

Author:
Sebastian Brocks
See Also:
Serialized Form

Field Summary
protected  int crew
           
protected  double infantryDamage
           
protected  int infantryRange
           
 
Fields inherited from class megamek.common.WeaponType
ammoType, atClass, capital, CLASS_AC, CLASS_AR10, CLASS_ARTILLERY, CLASS_ATM, CLASS_CAPITAL_AC, CLASS_CAPITAL_GAUSS, CLASS_CAPITAL_LASER, CLASS_CAPITAL_MISSILE, CLASS_CAPITAL_PPC, CLASS_LASER, CLASS_LBX_AC, CLASS_LRM, CLASS_MML, CLASS_MRM, CLASS_NONE, CLASS_PLASMA, CLASS_POINT_DEFENSE, CLASS_PPC, CLASS_PULSE_LASER, CLASS_ROCKET_LAUNCHER, CLASS_SCREEN, CLASS_SRM, CLASS_SUB_CAPITAL_CANNON, classNames, damage, DAMAGE_ARTILLERY, DAMAGE_MISSILE, DAMAGE_SPECIAL, DAMAGE_VARIABLE, damageLong, damageMedium, damageShort, explosionDamage, extAV, extremeRange, F_AERO_WEAPON, F_ALT_BOMB, F_AMS, F_ANTI_SHIP, F_ARTILLERY, F_AUTO_TARGET, F_B_POD, F_BA_WEAPON, F_BALLISTIC, F_BOMBAST_LASER, F_BURST_FIRE, F_C3M, F_CRUISE_MISSILE, F_DIRECT_FIRE, F_DIVE_BOMB, F_ENERGY, F_EXTINGUISHER, F_FLAMER, F_HEATASDICE, F_INCENDIARY_NEEDLES, F_INF_AA, F_INF_ARCHAIC, F_INF_BURST, F_INF_ENCUMBER, F_INF_NONPENETRATING, F_INF_POINT_BLANK, F_INF_SUPPORT, F_INFANTRY, F_INFANTRY_ATTACK, F_INFANTRY_ONLY, F_INFERNO, F_LASER, F_M_POD, F_MECH_WEAPON, F_MG, F_MGA, F_MISSILE, F_MISSILE_HITS, F_NO_AIM, F_NO_FIRES, F_ONESHOT, F_PLASMA, F_PLASMA_MFUK, F_PPC, F_PROTO_WEAPON, F_PROTOTYPE, F_PULSE, F_SOLO_ATTACK, F_SPACE_BOMB, F_SPLITABLE, F_TAG, F_TANK_WEAPON, F_TASER, heat, longAV, longRange, maxRange, medAV, mediumRange, minimumRange, NUM_CLASSES, rackSize, RANGE_EXT, RANGE_LONG, RANGE_MED, RANGE_SHORT, shortAV, shortRange, subCapital, waterExtremeRange, waterLongRange, waterMediumRange, waterShortRange, WEAPON_NA
 
Fields inherited from class megamek.common.EquipmentType
allTypes, armorCosts, armorNames, armorPointMultipliers, availRating, bv, BV_VARIABLE, cost, COST_VARIABLE, criticals, CRITICALS_VARIABLE, DATE_NONE, endTurnModes, ERA_CLAN, ERA_SL, ERA_SW, explosive, extinctDate, flags, hittable, instantModeSwitch, internalName, introDate, lookupHash, modes, name, POINT_MULTIPLIER_CLAN_FF, POINT_MULTIPLIER_UNKNOWN, RATING_A, RATING_B, RATING_C, RATING_D, RATING_E, RATING_F, RATING_X, ratingNames, reintroDate, spreadable, structureCosts, structureNames, subType, T_ARMOR_COMMERCIAL, T_ARMOR_FERRO_CARBIDE, T_ARMOR_FERRO_FIBROUS, T_ARMOR_FERRO_FIBROUS_PROTO, T_ARMOR_FERRO_IMP, T_ARMOR_FERRO_LAMELLOR, T_ARMOR_HARDENED, T_ARMOR_HEAVY_FERRO, T_ARMOR_HEAVY_INDUSTRIAL, T_ARMOR_INDUSTRIAL, T_ARMOR_LAMELLOR_FERRO_CARBIDE, T_ARMOR_LIGHT_FERRO, T_ARMOR_PATCHWORK, T_ARMOR_REACTIVE, T_ARMOR_REFLECTIVE, T_ARMOR_STANDARD, T_ARMOR_STEALTH, T_ARMOR_UNKNOWN, T_STRUCTURE_COMPOSITE, T_STRUCTURE_ENDO_COMPOSITE, T_STRUCTURE_ENDO_PROTOTYPE, T_STRUCTURE_ENDO_STEEL, T_STRUCTURE_INDUSTRIAL, T_STRUCTURE_REINFORCED, T_STRUCTURE_STANDARD, T_STRUCTURE_UNKNOWN, techLevel, techRating, toHitModifier, tonnage, TONNAGE_VARIABLE
 
Constructor Summary
InfantryWeapon()
           
 
Method Summary
protected  AttackHandler getCorrectHandler(ToHitData toHit, WeaponAttackAction waa, IGame game, Server server)
           
 double getCrew()
           
 double getInfantryDamage()
           
 int getInfantryRange()
           
 
Methods inherited from class megamek.common.weapons.Weapon
fire
 
Methods inherited from class megamek.common.WeaponType
getAmmoType, getAtClass, getATRanges, getBayType, getBV, getCost, getDamage, getDamage, getExplosionDamage, getExtAV, getExtremeRange, getFireTN, getHeat, getLongAV, getLongRange, getMaxRange, getMedAV, getMediumRange, getMinimumRange, getRackSize, getRanges, getRoundExtAV, getRoundLongAV, getRoundMedAV, getRoundShortAV, getShortAV, getShortRange, getWExtremeRange, getWLongRange, getWMediumRange, getWRanges, getWShortRange, initializeTypes, isCapital, isSubCapital, setAmmoType, setDamage, setMinimumRange, setName, setRackSize, setRanges, setWaterRanges
 
Methods inherited from class megamek.common.EquipmentType
addEndTurnMode, addLookupName, addSubType, addType, equals, get, getAllTypes, getArmorCost, getArmorPointMultiplier, getArmorPointMultiplier, getArmorPointMultiplier, getArmorType, getArmorTypeName, getAvailability, getAvailabilityName, getCriticals, getDesc, getExtinctionDate, getFlags, getInternalName, getIntroductionDate, getMode, getModes, getModesCount, getName, getNames, getRatingName, getReintruductionDate, getStructureCost, getStructureType, getStructureTypeName, getTechLevel, getTechRating, getTechRatingName, getToHitModifier, getTonnage, hasFlag, hasInstantModeSwitch, hasModes, hasSubType, isAvailableIn, isExplosive, isHittable, isNextTurnModeSwitch, isSpreadable, resolveVariableCost, setFlags, setInstantModeSwitch, setInternalName, setModes, setSubType, setTonnage, toString, writeEquipmentDatabase, writeEquipmentExtendedDatabase
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

infantryDamage

protected double infantryDamage

infantryRange

protected int infantryRange

crew

protected int crew
Constructor Detail

InfantryWeapon

public InfantryWeapon()
Method Detail

getInfantryDamage

public double getInfantryDamage()

getInfantryRange

public int getInfantryRange()

getCrew

public double getCrew()

getCorrectHandler

protected AttackHandler getCorrectHandler(ToHitData toHit,
                                          WeaponAttackAction waa,
                                          IGame game,
                                          Server server)
Overrides:
getCorrectHandler in class Weapon