Package megameklab.ui.util
Enum Class EquipmentDatabaseCategory
- All Implemented Interfaces:
Serializable,Comparable<EquipmentDatabaseCategory>,Constable
Equipment categories used for filtering the equipment database and deciding which filters to show.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescription -
Method Summary
Modifier and TypeMethodDescriptionstatic Set<EquipmentDatabaseCategory> static Set<EquipmentDatabaseCategory> static booleanisIndustrialEquipment(megamek.common.equipment.EquipmentType equipment) Returns true if the given equipment is an Industrial Equipment such as a Backhoe (TM, pp.booleanpassesFilter(megamek.common.equipment.EquipmentType eq, megamek.common.units.Entity en) booleanshowFilterFor(megamek.common.units.Entity en) static EquipmentDatabaseCategoryReturns the enum constant of this class with the specified name.static EquipmentDatabaseCategory[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
ENERGY
-
BALLISTIC
-
MISSILE
-
ARTILLERY
-
CAPITAL
-
PHYSICAL
-
INDUSTRIAL
-
AMMO
-
OTHER
-
AP
-
PROTOTYPE
-
ONE_SHOT
-
TORPEDO
-
UNAVAILABLE
-
UNUSABLE_AMMO
-
-
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
-
getDisplayName
-
showFilterFor
public boolean showFilterFor(megamek.common.units.Entity en) -
passesFilter
public boolean passesFilter(megamek.common.equipment.EquipmentType eq, megamek.common.units.Entity en) -
getShowFilters
- Returns:
- a Set of the filters that should act as "Show..." filters.
-
getHideFilters
- Returns:
- a Set of the filters that should act as "Hide..." filters.
-
isIndustrialEquipment
public static boolean isIndustrialEquipment(megamek.common.equipment.EquipmentType equipment) Returns true if the given equipment is an Industrial Equipment such as a Backhoe (TM, pp. 241-249). Note: This check has nothing to do with Industrial Meks.- Parameters:
equipment- The equipment to check- Returns:
- true if the equipment is "Industrial" equipment
-