public GameController(String avatar, String name, GameMap gameMap) { Robot = GetRobotForGame(avatar, name); GameMap = gameMap; }
public GameMemento(Robot robot, GameMap gameMap) { Robot = robot; GameMap = gameMap; }
private void RestoreState(GameMemento gameControllerMemento) { Robot = gameControllerMemento.Robot; GameMap = gameControllerMemento.GameMap; }