Ejemplo n.º 1
0
 public void Play()
 {
     _state = new GameState((int)(_state.Health * 0.9), _state.KilledMonsters + 2);
     Console.WriteLine(_state.ToString());
 }
Ejemplo n.º 2
0
 public void LoadGame(GameMemento memento)
 {
     _state = memento.GetState();
 }