Package fr.royalpha.sheepwars.api
Enum GameState
- java.lang.Object
-
- java.lang.Enum<GameState>
-
- fr.royalpha.sheepwars.api.GameState
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INGAMERESTARTINGTERMINATEDWAITING
-
Field Summary
Fields Modifier and Type Field Description private static GameStatecurrentStepprivate java.lang.Stringmotd
-
Constructor Summary
Constructors Modifier Constructor Description privateGameState(java.lang.String motd)
-
Method Summary
Modifier and Type Method Description static GameStategetCurrentStep()static java.lang.StringgetMOTD()static booleanisStep(GameState step)static voidsetCurrentStep(GameState currStep)static GameStatevalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static GameState[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Field Detail
-
currentStep
private static GameState currentStep
-
motd
private java.lang.String motd
-
-
Method Detail
-
values
public static GameState[] values()
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static GameState 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
-
getMOTD
public static java.lang.String getMOTD()
-
isStep
public static boolean isStep(GameState step)
-
getCurrentStep
public static GameState getCurrentStep()
-
setCurrentStep
public static void setCurrentStep(GameState currStep)
-
-