Enum Class StructureEngine

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

public enum StructureEngine extends Enum<StructureEngine> implements Serializable
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
  • Enum Constant Details

  • Method Details

    • values

      public static StructureEngine[] 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 StructureEngine 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
    • getEngineType

      public int getEngineType()
    • getBuildingWeightMultiplier

      public double getBuildingWeightMultiplier()
    • getBaseCost

      public double getBaseCost()