Package com.starpoints
Enum StarpointMode
- java.lang.Object
-
- java.lang.Enum<StarpointMode>
-
- com.starpoints.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.
-
-
Enum Constant Summary
Enum Constants Enum Constant Description BestMoveReplay
Best move replay.ClientWaitForGame
Mode while client waits for server game.Credits
Credits.Editor
Level Editor.Game
Mode while playing game.GameMenu
Game menu.GameOptions
Game options.LevelSetSelection
Selection of editor level set.Menu
Main menu.NameEntry
Name Entry.NetworkMenu
Network Menu.OptionsMenu
Options menu.Other
Any other mode extension of the game application.SavedGameSelection
Selection of saved 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.
-
-
-
Enum Constant Detail
-
Menu
public static final StarpointMode Menu
Main menu.
-
Game
public static final StarpointMode Game
Mode while playing game.
-
Credits
public static final StarpointMode Credits
Credits.
-
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.
-
Editor
public static final StarpointMode Editor
Level Editor.
-
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 namejava.lang.NullPointerException
- if the argument is null
-
-