megamek.common.weapons
Class AmmoBayWeapon

java.lang.Object
  extended by megamek.common.EquipmentType
      extended by megamek.common.WeaponType
          extended by megamek.common.weapons.Weapon
              extended by megamek.common.weapons.BayWeapon
                  extended by megamek.common.weapons.AmmoBayWeapon
All Implemented Interfaces:
java.io.Serializable
Direct Known Subclasses:
ACBayWeapon, AR10BayWeapon, ATMBayWeapon, CapitalACBayWeapon, CapitalGaussBayWeapon, CapitalMissileBayWeapon, LBXBayWeapon, LRMBayWeapon, MMLBayWeapon, MRMBayWeapon, PlasmaBayWeapon, PointDefenseBayWeapon, RLBayWeapon, SCCBayWeapon, ScreenLauncherBayWeapon, SRMBayWeapon, SubCapitalMissileBayWeapon

public abstract class AmmoBayWeapon
extends BayWeapon

Author:
Jay Lawson This is my attempt to get weapon bays treated as normal weapons rather than the current hack in place
See Also:
Serialized Form

Field Summary
 
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
AmmoBayWeapon()
           
 
Method Summary
protected  void checkAmmo(WeaponAttackAction waa, IGame g)
           
 AttackHandler fire(WeaponAttackAction waa, IGame game, Server server)
           
protected  AttackHandler getCorrectHandler(ToHitData toHit, WeaponAttackAction waa, IGame game, Server server)
           
 
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
 

Constructor Detail

AmmoBayWeapon

public AmmoBayWeapon()
Method Detail

fire

public AttackHandler fire(WeaponAttackAction waa,
                          IGame game,
                          Server server)
Overrides:
fire in class BayWeapon

checkAmmo

protected void checkAmmo(WeaponAttackAction waa,
                         IGame g)

getCorrectHandler

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