Enum Class FuelType

java.lang.Object
java.lang.Enum<FuelType>
megamek.common.equipment.enums.FuelType
All Implemented Interfaces:
Serializable, Comparable<FuelType>, Constable

public enum FuelType extends Enum<FuelType>
Fuel type affects costs of refueling (if tracking fuel) and possibly vehicle operating range. See StratOps, p. 179.
  • Enum Constant Details

    • NONE

      public static final FuelType NONE
      Currently a placeholder for "none of the others"; a better option than null
    • HYDROGEN

      public static final FuelType HYDROGEN
      Fuel cell
    • PETROCHEMICALS

      public static final FuelType PETROCHEMICALS
      Standard non-aerospace ICE fuel
    • ALCOHOL

      public static final FuelType ALCOHOL
      Alternate ICE fuel
    • NATURAL_GAS

      public static final FuelType NATURAL_GAS
      Alternate ICE fuel
  • Field Details

    • cost

      public final int cost
      Cost 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

      public final TechRating availability
      Availability code, as with equipment
  • Method Details

    • values

      public static FuelType[] 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

      public static FuelType valueOf(String name)
      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 name
      NullPointerException - if the argument is null