Enum StarpointMode

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Comparable<StarpointMode>

    public enum StarpointMode
    extends java.lang.Enum<StarpointMode>
    Game mode of the Starpoints game.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static StarpointMode valueOf​(java.lang.String name)
      Returns the enum constant of this type with the specified name.
      static StarpointMode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      • Methods inherited from class java.lang.Enum

        clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
      • Methods inherited from class java.lang.Object

        getClass, notify, notifyAll, wait, wait, wait
    • Enum Constant Detail

      • Game

        public static final StarpointMode Game
        Mode while playing game.
      • NameEntry

        public static final StarpointMode NameEntry
        Name Entry.
      • OptionsMenu

        public static final StarpointMode OptionsMenu
        Options menu.
      • GameMenu

        public static final StarpointMode GameMenu
        Game menu.
      • GameOptions

        public static final StarpointMode GameOptions
        Game options.
      • SavedGameSelection

        public static final StarpointMode SavedGameSelection
        Selection of saved game.
      • LevelSetSelection

        public static final StarpointMode LevelSetSelection
        Selection of editor level set.
      • NetworkMenu

        public static final StarpointMode NetworkMenu
        Network Menu.
      • BestMoveReplay

        public static final StarpointMode BestMoveReplay
        Best move replay.
      • Other

        public static final StarpointMode Other
        Any other mode extension of the game application.
      • ClientWaitForGame

        public static final StarpointMode ClientWaitForGame
        Mode while client waits for server game.
    • Method Detail

      • values

        public static StarpointMode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (StarpointMode c : StarpointMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static StarpointMode valueOf​(java.lang.String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
        java.lang.IllegalArgumentException - if this enum type has no constant with the specified name
        java.lang.NullPointerException - if the argument is null