Package megameklab.ui

Enum Class MMLStartUp

java.lang.Object
java.lang.Enum<MMLStartUp>
megameklab.ui.MMLStartUp
All Implemented Interfaces:
Serializable, Comparable<MMLStartUp>, Constable

public enum MMLStartUp extends Enum<MMLStartUp>
This class represents the different types of entry into MML that can be configured in the settings. Options are e.g. starting with the splash screen main UI (as it has been), trying to load the most recent unit or starting with a new unit directly.
  • Enum Constant Details

    • SPLASH_SCREEN

      public static final MMLStartUp SPLASH_SCREEN
    • RECENT_UNIT

      public static final MMLStartUp RECENT_UNIT
    • RESTORE_TABS

      public static final MMLStartUp RESTORE_TABS
    • NEW_MEK

      public static final MMLStartUp NEW_MEK
    • NEW_TANK

      public static final MMLStartUp NEW_TANK
    • NEW_BATTLEARMOR

      public static final MMLStartUp NEW_BATTLEARMOR
    • NEW_CONVENTIONAL_INFANTRY

      public static final MMLStartUp NEW_CONVENTIONAL_INFANTRY
    • NEW_FIGHTER

      public static final MMLStartUp NEW_FIGHTER
    • NEW_DROPSHIP

      public static final MMLStartUp NEW_DROPSHIP
    • NEW_JUMPSHIP

      public static final MMLStartUp NEW_JUMPSHIP
    • NEW_SUPPORT_VEE

      public static final MMLStartUp NEW_SUPPORT_VEE
    • NEW_PROTOMEK

      public static final MMLStartUp NEW_PROTOMEK
  • Method Details

    • values

      public static MMLStartUp[] 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 MMLStartUp 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
    • getDisplayName

      public String getDisplayName()
      Returns:
      A display name for this MMLStartUp taken from the resources (possibly localised).
    • parse

      public static MMLStartUp parse(String startUpName)
      Parses the given String, returning the MMLStartUp fitting the String like the valueOf() method does, but returns SPLASH_SCREEN when it can't be parsed (instead of null).
      Parameters:
      startUpName - A string giving one of the MMLStartUp values
      Returns:
      the MMLStartUp parsed from the string or SPLASH_SCREEN. Never returns null.