Package megamek.common.equipment
Enum Class WeaponTypeFlag
- All Implemented Interfaces:
Serializable,Comparable<WeaponTypeFlag>,Constable,EquipmentFlag
Set of flags that can be used to determine how the weapon is used and its special properties note: many weapons can
be identified by their ammo type
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionA weapon with this flag can only be fired alone, i.e.Denotes Clan Heavy Lasers (S, M, L)A weapon with this flag is not an actual weapon but only used as an internal representation of an attack. -
Method Summary
Modifier and TypeMethodDescriptionstatic WeaponTypeFlagReturns the enum constant of this class with the specified name.static WeaponTypeFlag[]values()Returns an array containing the constants of this enum class, in the order they are declared.Methods inherited from class java.lang.Enum
clone, compareTo, describeConstable, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOfMethods inherited from interface megamek.common.equipment.EquipmentFlag
asEquipmentBitSet, ordinal
-
Enum Constant Details
-
F_BALLISTIC
-
F_ENERGY
-
F_MISSILE
-
F_ARTILLERY
-
F_ARTEMIS_COMPATIBLE
-
F_AUTO_TARGET
-
F_BA_INDIVIDUAL
-
F_BURST_FIRE
-
F_DIRECT_FIRE
-
F_DOUBLE_ONE_SHOT
-
F_EXTINGUISHER
-
F_HEAT_AS_DICE
-
F_HEAT_VARIABLE
-
F_INFANTRY_ONLY
-
F_MISSILE_HITS
-
F_MORTAR_TYPE_INDIRECT
-
F_NO_FIRES
-
F_NO_AIM
-
F_ONE_SHOT
-
F_SOLO_ATTACK
A weapon with this flag can only be fired alone, i.e. it must be the only weapon attacking -
F_PROTOTYPE
-
F_REPEATING
-
F_INCENDIARY_NEEDLES
-
F_INFERNO
-
F_PLASMA
-
F_TAG
-
F_C3M
-
F_C3MBS
-
F_ANTI_SHIP
-
F_B_POD
-
F_BOMBAST_LASER
-
F_HYPER
-
F_LASER
-
F_LARGE_MISSILE
-
F_ER_FLAMER
-
F_FLAMER
-
F_M_POD
-
F_MEK_MORTAR
-
F_MG
-
F_MGA
-
F_PLASMA_MFUK
-
F_PPC
-
F_PULSE
-
F_VSP
-
F_TASER
-
F_TSEMP
-
F_VGL
-
F_ARROW_IV
-
F_ALT_BOMB
-
F_BOMB_WEAPON
-
F_DIVE_BOMB
-
F_SPACE_BOMB
-
F_AMS
-
F_CWS
-
F_AMS_BAY
-
F_PD_BAY
-
F_CRUISE_MISSILE
-
F_MASS_DRIVER
-
F_AERO_WEAPON
-
F_INFANTRY
-
F_BA_WEAPON
-
F_MEK_WEAPON
-
F_PROTO_WEAPON
-
F_TANK_WEAPON
-
F_INFANTRY_ATTACK
-
F_INF_AA
-
F_INF_ARCHAIC
-
F_INF_BURST
-
F_INF_CLIMBING_CLAWS
-
F_INF_DISPOSABLE
-
F_INF_ENCUMBER
-
F_INF_NONPENETRATING
-
F_INF_POINT_BLANK
-
F_INF_SUPPORT
-
INTERNAL_REPRESENTATION
A weapon with this flag is not an actual weapon but only used as an internal representation of an attack. It should be hidden in the readout, tooltip and RS but shown in the unit display's weapon list where it is used. -
HEAVY_LASER
Denotes Clan Heavy Lasers (S, M, L) -
F_AC
-
F_LRM
-
F_SRM
-
F_HAG
-
F_MML
-
F_MRM
-
F_ATM
-
F_NARC
-
F_GAUSS
-
F_HVAC
-
F_INDIRECT_FIRE
-
F_PPC_CAPACITOR_COMPATIBLE
-
S_IMPROVED
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum class has no constant with the specified nameNullPointerException- if the argument is null
-