Last active
June 21, 2016 19:28
-
-
Save FuryRider/3512a6308d954f71abbc to your computer and use it in GitHub Desktop.
GameStates
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package furyrider.minigame.survivalgames.handlers; | |
public enum GameState | |
{ | |
IN_LOBBY, IN_GAME, PRE_GAME, PRE_DM, DM, RESETTING, POST_DM; | |
private static GameState state; | |
public static void setState(GameState state) | |
{ | |
GameState.state = state; | |
} | |
public static boolean isState(GameState state) | |
{ | |
return GameState.state == state; | |
} | |
public static GameState getState() | |
{ | |
return state; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment