Class UnitType

java.lang.Object
megamek.common.units.UnitType

public class UnitType extends Object
weight class limits and names
  • Field Details

  • Constructor Details

    • UnitType

      public UnitType()
  • Method Details

    • determineUnitTypeCode

      public static int determineUnitTypeCode(String name)
      Reverse lookup for type integer constant from name
      Parameters:
      name - Unit type name
      Returns:
      The unit type constant. If no match can be found, returns -1.
    • getTypeName

      public static String getTypeName(int type)
    • getTypeDisplayableName

      public static String getTypeDisplayableName(int type)
    • isVTOL

      public static boolean isVTOL(Entity e)
      Whether the given entity is a VTOL
      Parameters:
      e - the entity to examine
      Returns:
      True or false
    • isSpheroidDropship

      public static boolean isSpheroidDropship(Entity e)
      Whether the given entity is a Spheroid dropship
      Parameters:
      e - the entity to examine
      Returns:
      True or false