Package megamek.common.equipment.enums
Enum Class StructureEngine
- All Implemented Interfaces:
Serializable,Comparable<StructureEngine>,Constable
MobileStructure and BuildingEntity both have some unique
and shared rules for Engines.
- Building Entity weight multiplier and daily fuel weight from TO:AR 132
- Base Cost for Mobile Structure and Building Entity engine/generator from TO:AUE 208
- Mobile Structure power and motive system multipliers and fuel multiplier from TO:AUE 78
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionBuildingEntityonly.BuildingEntityonly.BuildingEntityonly, also prohibits mounting equipment on the roof -
Method Summary
Modifier and TypeMethodDescriptiondoubledoubleintstatic StructureEngineReturns the enum constant of this class with the specified name.static StructureEngine[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
STEAM
-
SOLAR
BuildingEntityonly, also prohibits mounting equipment on the roof -
FISSION
-
FUSION
-
COMBUSTION_LIQUID
-
COMBUSTION_SOLID
-
FUEL_CELL
-
EXTERNAL_PCMT
BuildingEntityonly. -
EXTERNAL
BuildingEntityonly.
-
-
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
-
getEngineType
public int getEngineType() -
getBuildingWeightMultiplier
public double getBuildingWeightMultiplier() -
getBaseCost
public double getBaseCost()
-