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 SummaryNested classes/interfaces inherited from class java.lang.EnumEnum.EnumDesc<E extends Enum<E>>
- 
Enum Constant SummaryEnum ConstantsEnum ConstantDescriptionAlternate ICE fuelFuel cellAlternate ICE fuelCurrently a placeholder for "none of the others"; a better option than nullStandard non-aerospace ICE fuel
- 
Field SummaryFieldsModifier and TypeFieldDescriptionfinal TechRatingAvailability code, as with equipmentfinal intCost in C-bills per ton.
- 
Method Summary
- 
Enum Constant Details- 
NONECurrently a placeholder for "none of the others"; a better option than null
- 
HYDROGENFuel cell
- 
PETROCHEMICALSStandard non-aerospace ICE fuel
- 
ALCOHOLAlternate ICE fuel
- 
NATURAL_GASAlternate ICE fuel
 
- 
- 
Field Details- 
costpublic 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.
- 
availabilityAvailability code, as with equipment
 
- 
- 
Method Details- 
valuesReturns 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
 
- 
valueOfReturns 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 name
- NullPointerException- if the argument is null
 
 
-