public void SetGameState(GameState state) { CurrentGameStateObject.Unload(); CurrentGameStateObject = GameStateObjects[state]; //TODO: Ensure game is always in valid state CurrentGameState = state; CurrentGameStateObject.Load(this); }
public GameStateObject GetGameStateObject(GameState state) { return GameStateObjects[state]; }
public bool Equals(GameState obj) { return Identifier == obj.Identifier; }