Package megamek.common.equipment.enums
Enum Class FuelType
- All Implemented Interfaces:
Serializable
,Comparable<FuelType>
,Constable
Fuel type affects costs of refueling (if tracking fuel) and possibly vehicle operating range. See StratOps, p. 179.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionAlternate ICE fuelFuel cellAlternate ICE fuelCurrently a placeholder for "none of the others"; a better option than nullStandard non-aerospace ICE fuel -
Field Summary
FieldsModifier and TypeFieldDescriptionfinal TechRating
Availability code, as with equipmentfinal int
Cost in C-bills per ton. -
Method Summary
-
Enum Constant Details
-
NONE
Currently a placeholder for "none of the others"; a better option than null -
HYDROGEN
Fuel cell -
PETROCHEMICALS
Standard non-aerospace ICE fuel -
ALCOHOL
Alternate ICE fuel -
NATURAL_GAS
Alternate ICE fuel
-
-
Field Details
-
cost
public final int costCost in C-bills per ton. This is the cost for delivery to a forward military base. Costs can vary quite a bit in other situations. -
availability
Availability code, as with equipment
-
-
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
-