megamek.common
Class AmmoType
java.lang.Object
megamek.common.EquipmentType
megamek.common.AmmoType
- Direct Known Subclasses:
- BombType
public class AmmoType
- extends EquipmentType
| 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 |
| Methods inherited from class megamek.common.EquipmentType |
addEndTurnMode, addLookupName, addSubType, addType, equals, get, getAllTypes, getArmorCost, getArmorPointMultiplier, getArmorPointMultiplier, getArmorPointMultiplier, getArmorType, getArmorTypeName, getAvailability, getAvailabilityName, getBV, getCost, 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, writeEquipmentDatabase, writeEquipmentExtendedDatabase |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
T_NA
public static final int T_NA
- See Also:
- Constant Field Values
T_AC
public static final int T_AC
- See Also:
- Constant Field Values
T_VEHICLE_FLAMER
public static final int T_VEHICLE_FLAMER
- See Also:
- Constant Field Values
T_MG
public static final int T_MG
- See Also:
- Constant Field Values
T_MG_HEAVY
public static final int T_MG_HEAVY
- See Also:
- Constant Field Values
T_MG_LIGHT
public static final int T_MG_LIGHT
- See Also:
- Constant Field Values
T_GAUSS
public static final int T_GAUSS
- See Also:
- Constant Field Values
T_LRM
public static final int T_LRM
- See Also:
- Constant Field Values
T_LRM_TORPEDO
public static final int T_LRM_TORPEDO
- See Also:
- Constant Field Values
T_SRM
public static final int T_SRM
- See Also:
- Constant Field Values
T_SRM_TORPEDO
public static final int T_SRM_TORPEDO
- See Also:
- Constant Field Values
T_SRM_STREAK
public static final int T_SRM_STREAK
- See Also:
- Constant Field Values
T_MRM
public static final int T_MRM
- See Also:
- Constant Field Values
T_NARC
public static final int T_NARC
- See Also:
- Constant Field Values
T_AMS
public static final int T_AMS
- See Also:
- Constant Field Values
T_ARROW_IV
public static final int T_ARROW_IV
- See Also:
- Constant Field Values
T_LONG_TOM
public static final int T_LONG_TOM
- See Also:
- Constant Field Values
T_SNIPER
public static final int T_SNIPER
- See Also:
- Constant Field Values
T_THUMPER
public static final int T_THUMPER
- See Also:
- Constant Field Values
T_AC_LBX
public static final int T_AC_LBX
- See Also:
- Constant Field Values
T_AC_ULTRA
public static final int T_AC_ULTRA
- See Also:
- Constant Field Values
T_GAUSS_LIGHT
public static final int T_GAUSS_LIGHT
- See Also:
- Constant Field Values
T_GAUSS_HEAVY
public static final int T_GAUSS_HEAVY
- See Also:
- Constant Field Values
T_AC_ROTARY
public static final int T_AC_ROTARY
- See Also:
- Constant Field Values
T_SRM_ADVANCED
public static final int T_SRM_ADVANCED
- See Also:
- Constant Field Values
T_BA_MICRO_BOMB
public static final int T_BA_MICRO_BOMB
- See Also:
- Constant Field Values
T_LRM_TORPEDO_COMBO
public static final int T_LRM_TORPEDO_COMBO
- See Also:
- Constant Field Values
T_MINE
public static final int T_MINE
- See Also:
- Constant Field Values
T_ATM
public static final int T_ATM
- See Also:
- Constant Field Values
T_ROCKET_LAUNCHER
public static final int T_ROCKET_LAUNCHER
- See Also:
- Constant Field Values
T_INARC
public static final int T_INARC
- See Also:
- Constant Field Values
T_LRM_STREAK
public static final int T_LRM_STREAK
- See Also:
- Constant Field Values
T_AC_LBX_THB
public static final int T_AC_LBX_THB
- See Also:
- Constant Field Values
T_AC_ULTRA_THB
public static final int T_AC_ULTRA_THB
- See Also:
- Constant Field Values
T_LAC
public static final int T_LAC
- See Also:
- Constant Field Values
T_HEAVY_FLAMER
public static final int T_HEAVY_FLAMER
- See Also:
- Constant Field Values
T_COOLANT_POD
public static final int T_COOLANT_POD
- See Also:
- Constant Field Values
T_EXLRM
public static final int T_EXLRM
- See Also:
- Constant Field Values
T_APGAUSS
public static final int T_APGAUSS
- See Also:
- Constant Field Values
T_MAGSHOT
public static final int T_MAGSHOT
- See Also:
- Constant Field Values
T_PXLRM
public static final int T_PXLRM
- See Also:
- Constant Field Values
T_HSRM
public static final int T_HSRM
- See Also:
- Constant Field Values
T_MRM_STREAK
public static final int T_MRM_STREAK
- See Also:
- Constant Field Values
T_MPOD
public static final int T_MPOD
- See Also:
- Constant Field Values
T_HAG
public static final int T_HAG
- See Also:
- Constant Field Values
T_MML
public static final int T_MML
- See Also:
- Constant Field Values
T_PLASMA
public static final int T_PLASMA
- See Also:
- Constant Field Values
T_SBGAUSS
public static final int T_SBGAUSS
- See Also:
- Constant Field Values
T_RAIL_GUN
public static final int T_RAIL_GUN
- See Also:
- Constant Field Values
T_TBOLT_5
public static final int T_TBOLT_5
- See Also:
- Constant Field Values
T_TBOLT_10
public static final int T_TBOLT_10
- See Also:
- Constant Field Values
T_TBOLT_15
public static final int T_TBOLT_15
- See Also:
- Constant Field Values
T_TBOLT_20
public static final int T_TBOLT_20
- See Also:
- Constant Field Values
T_NAC
public static final int T_NAC
- See Also:
- Constant Field Values
T_LIGHT_NGAUSS
public static final int T_LIGHT_NGAUSS
- See Also:
- Constant Field Values
T_MED_NGAUSS
public static final int T_MED_NGAUSS
- See Also:
- Constant Field Values
T_HEAVY_NGAUSS
public static final int T_HEAVY_NGAUSS
- See Also:
- Constant Field Values
T_KILLER_WHALE
public static final int T_KILLER_WHALE
- See Also:
- Constant Field Values
T_WHITE_SHARK
public static final int T_WHITE_SHARK
- See Also:
- Constant Field Values
T_BARRACUDA
public static final int T_BARRACUDA
- See Also:
- Constant Field Values
T_KRAKEN_T
public static final int T_KRAKEN_T
- See Also:
- Constant Field Values
T_AR10
public static final int T_AR10
- See Also:
- Constant Field Values
T_SCREEN_LAUNCHER
public static final int T_SCREEN_LAUNCHER
- See Also:
- Constant Field Values
T_ALAMO
public static final int T_ALAMO
- See Also:
- Constant Field Values
T_IGAUSS_HEAVY
public static final int T_IGAUSS_HEAVY
- See Also:
- Constant Field Values
T_CHEMICAL_LASER
public static final int T_CHEMICAL_LASER
- See Also:
- Constant Field Values
T_HYPER_VELOCITY
public static final int T_HYPER_VELOCITY
- See Also:
- Constant Field Values
T_MEK_MORTAR
public static final int T_MEK_MORTAR
- See Also:
- Constant Field Values
T_CRUISE_MISSILE
public static final int T_CRUISE_MISSILE
- See Also:
- Constant Field Values
T_BPOD
public static final int T_BPOD
- See Also:
- Constant Field Values
T_SCC
public static final int T_SCC
- See Also:
- Constant Field Values
T_MANTA_RAY
public static final int T_MANTA_RAY
- See Also:
- Constant Field Values
T_SWORDFISH
public static final int T_SWORDFISH
- See Also:
- Constant Field Values
T_STINGRAY
public static final int T_STINGRAY
- See Also:
- Constant Field Values
T_PIRANHA
public static final int T_PIRANHA
- See Also:
- Constant Field Values
T_TASER
public static final int T_TASER
- See Also:
- Constant Field Values
T_BOMB
public static final int T_BOMB
- See Also:
- Constant Field Values
T_AAA_MISSILE
public static final int T_AAA_MISSILE
- See Also:
- Constant Field Values
T_AS_MISSILE
public static final int T_AS_MISSILE
- See Also:
- Constant Field Values
T_ASEW_MISSILE
public static final int T_ASEW_MISSILE
- See Also:
- Constant Field Values
T_LAA_MISSILE
public static final int T_LAA_MISSILE
- See Also:
- Constant Field Values
T_RL_BOMB
public static final int T_RL_BOMB
- See Also:
- Constant Field Values
T_ARROW_IV_BOMB
public static final int T_ARROW_IV_BOMB
- See Also:
- Constant Field Values
T_FLUID_GUN
public static final int T_FLUID_GUN
- See Also:
- Constant Field Values
T_SNIPER_CANNON
public static final int T_SNIPER_CANNON
- See Also:
- Constant Field Values
T_THUMPER_CANNON
public static final int T_THUMPER_CANNON
- See Also:
- Constant Field Values
T_LONG_TOM_CANNON
public static final int T_LONG_TOM_CANNON
- See Also:
- Constant Field Values
T_NAIL_RIVET_GUN
public static final int T_NAIL_RIVET_GUN
- See Also:
- Constant Field Values
T_ACi
public static final int T_ACi
- See Also:
- Constant Field Values
T_KRAKENM
public static final int T_KRAKENM
- See Also:
- Constant Field Values
T_PAC
public static final int T_PAC
- See Also:
- Constant Field Values
T_NLRM
public static final int T_NLRM
- See Also:
- Constant Field Values
NUM_TYPES
public static final int NUM_TYPES
- See Also:
- Constant Field Values
F_MG
public static final java.math.BigInteger F_MG
F_BATTLEARMOR
public static final java.math.BigInteger F_BATTLEARMOR
F_PROTOMECH
public static final java.math.BigInteger F_PROTOMECH
F_HOTLOAD
public static final java.math.BigInteger F_HOTLOAD
F_ENCUMBERING
public static final java.math.BigInteger F_ENCUMBERING
F_MML_LRM
public static final java.math.BigInteger F_MML_LRM
F_AR10_WHITE_SHARK
public static final java.math.BigInteger F_AR10_WHITE_SHARK
F_AR10_KILLER_WHALE
public static final java.math.BigInteger F_AR10_KILLER_WHALE
F_AR10_BARRACUDA
public static final java.math.BigInteger F_AR10_BARRACUDA
F_NUCLEAR
public static final java.math.BigInteger F_NUCLEAR
F_TELE_MISSILE
public static final java.math.BigInteger F_TELE_MISSILE
F_CAP_MISSILE
public static final java.math.BigInteger F_CAP_MISSILE
F_SPACE_BOMB
public static final java.math.BigInteger F_SPACE_BOMB
F_GROUND_BOMB
public static final java.math.BigInteger F_GROUND_BOMB
M_STANDARD
public static final long M_STANDARD
- See Also:
- Constant Field Values
M_CLUSTER
public static final long M_CLUSTER
- See Also:
- Constant Field Values
M_ARMOR_PIERCING
public static final long M_ARMOR_PIERCING
- See Also:
- Constant Field Values
M_FLECHETTE
public static final long M_FLECHETTE
- See Also:
- Constant Field Values
M_INCENDIARY_AC
public static final long M_INCENDIARY_AC
- See Also:
- Constant Field Values
M_PRECISION
public static final long M_PRECISION
- See Also:
- Constant Field Values
M_TRACER
public static final long M_TRACER
- See Also:
- Constant Field Values
M_FLAK
public static final long M_FLAK
- See Also:
- Constant Field Values
M_EXTENDED_RANGE
public static final long M_EXTENDED_RANGE
- See Also:
- Constant Field Values
M_HIGH_EXPLOSIVE
public static final long M_HIGH_EXPLOSIVE
- See Also:
- Constant Field Values
M_FRAGMENTATION
public static final long M_FRAGMENTATION
- See Also:
- Constant Field Values
M_LISTEN_KILL
public static final long M_LISTEN_KILL
- See Also:
- Constant Field Values
M_ANTI_TSM
public static final long M_ANTI_TSM
- See Also:
- Constant Field Values
M_NARC_CAPABLE
public static final long M_NARC_CAPABLE
- See Also:
- Constant Field Values
M_ARTEMIS_CAPABLE
public static final long M_ARTEMIS_CAPABLE
- See Also:
- Constant Field Values
M_DEAD_FIRE
public static final long M_DEAD_FIRE
- See Also:
- Constant Field Values
M_HEAT_SEEKING
public static final long M_HEAT_SEEKING
- See Also:
- Constant Field Values
M_TANDEM_CHARGE
public static final long M_TANDEM_CHARGE
- See Also:
- Constant Field Values
M_ARTEMIS_V_CAPABLE
public static final long M_ARTEMIS_V_CAPABLE
- See Also:
- Constant Field Values
M_INCENDIARY_LRM
public static final long M_INCENDIARY_LRM
- See Also:
- Constant Field Values
M_FLARE
public static final long M_FLARE
- See Also:
- Constant Field Values
M_SEMIGUIDED
public static final long M_SEMIGUIDED
- See Also:
- Constant Field Values
M_SWARM
public static final long M_SWARM
- See Also:
- Constant Field Values
M_SWARM_I
public static final long M_SWARM_I
- See Also:
- Constant Field Values
M_THUNDER
public static final long M_THUNDER
- See Also:
- Constant Field Values
M_THUNDER_AUGMENTED
public static final long M_THUNDER_AUGMENTED
- See Also:
- Constant Field Values
M_THUNDER_INFERNO
public static final long M_THUNDER_INFERNO
- See Also:
- Constant Field Values
M_THUNDER_VIBRABOMB
public static final long M_THUNDER_VIBRABOMB
- See Also:
- Constant Field Values
M_THUNDER_ACTIVE
public static final long M_THUNDER_ACTIVE
- See Also:
- Constant Field Values
M_FOLLOW_THE_LEADER
public static final long M_FOLLOW_THE_LEADER
- See Also:
- Constant Field Values
M_MULTI_PURPOSE
public static final long M_MULTI_PURPOSE
- See Also:
- Constant Field Values
M_INFERNO
public static final long M_INFERNO
- See Also:
- Constant Field Values
M_AX_HEAD
public static final long M_AX_HEAD
- See Also:
- Constant Field Values
M_TORPEDO
public static final long M_TORPEDO
- See Also:
- Constant Field Values
M_NARC_EX
public static final long M_NARC_EX
- See Also:
- Constant Field Values
M_ECM
public static final long M_ECM
- See Also:
- Constant Field Values
M_HAYWIRE
public static final long M_HAYWIRE
- See Also:
- Constant Field Values
M_NEMESIS
public static final long M_NEMESIS
- See Also:
- Constant Field Values
M_EXPLOSIVE
public static final long M_EXPLOSIVE
- See Also:
- Constant Field Values
M_HOMING
public static final long M_HOMING
- See Also:
- Constant Field Values
M_FASCAM
public static final long M_FASCAM
- See Also:
- Constant Field Values
M_INFERNO_IV
public static final long M_INFERNO_IV
- See Also:
- Constant Field Values
M_VIBRABOMB_IV
public static final long M_VIBRABOMB_IV
- See Also:
- Constant Field Values
M_SMOKE
public static final long M_SMOKE
- See Also:
- Constant Field Values
M_DAVY_CROCKETT_M
public static final long M_DAVY_CROCKETT_M
- See Also:
- Constant Field Values
M_SANTA_ANNA
public static final long M_SANTA_ANNA
- See Also:
- Constant Field Values
M_TELE
public static final long M_TELE
- See Also:
- Constant Field Values
M_WATER
public static final long M_WATER
- See Also:
- Constant Field Values
M_PAINT_OBSCURANT
public static final long M_PAINT_OBSCURANT
- See Also:
- Constant Field Values
M_OIL_SLICK
public static final long M_OIL_SLICK
- See Also:
- Constant Field Values
M_ANTI_FLAME_FOAM
public static final long M_ANTI_FLAME_FOAM
- See Also:
- Constant Field Values
M_CORROSIVE
public static final long M_CORROSIVE
- See Also:
- Constant Field Values
M_COOLANT
public static final long M_COOLANT
- See Also:
- Constant Field Values
damagePerShot
protected int damagePerShot
rackSize
protected int rackSize
ammoType
protected int ammoType
munitionType
protected long munitionType
shots
protected int shots
shortName
protected java.lang.String shortName
heat
protected int heat
range
protected RangeType range
tech
protected int tech
capital
protected boolean capital
AmmoType
public AmmoType()
getMunitionsFor
public static java.util.Vector<AmmoType> getMunitionsFor(int nAmmoType)
equals
public boolean equals(java.lang.Object other)
- When comparing
AmmoTypes, look at the ammoType and rackSize.
- Overrides:
equals in class java.lang.Object
- Parameters:
other - the Object to compare to this one.
- Returns:
true if the other is an AmmoType object
of the same ammoType as this object. N.B. different
munition types are still equal.
getAmmoType
public int getAmmoType()
getMunitionType
public long getMunitionType()
getDamagePerShot
public int getDamagePerShot()
getRackSize
public int getRackSize()
getShots
public int getShots()
getAmmoRatio
public double getAmmoRatio()
isCapital
public boolean isCapital()
getOneshotAmmo
public static AmmoType getOneshotAmmo(Mounted mounted)
- Returns the first usable ammo type for the given oneshot launcher
- Parameters:
mounted -
- Returns:
initializeTypes
public static void initializeTypes()
toString
public java.lang.String toString()
- Overrides:
toString in class EquipmentType
canClearMinefield
public static boolean canClearMinefield(AmmoType at)
canClearMinefield2
public static boolean canClearMinefield2(AmmoType at)
canDeliverMinefield
public static boolean canDeliverMinefield(AmmoType at)
getProtoBV
public double getProtoBV(int shots)
- get bv for protomech loads
getBABV
public double getBABV()
- get BV for BA loads
- Returns:
getShortName
public java.lang.String getShortName()