示例#1
0
 /// <summary>
 /// Constructs a new instance of the game state machine.
 /// </summary>
 public GameStateMachine(IPlayerDirector director, ILogger <GameStateMachine> logger)
 {
     _logger             = logger;
     Director            = director;
     GameData            = new GameData();
     GameDataManipulator = new GameDataManipulator(GameData);
     PolicyDeck          = new PolicyDeck(GameData.DrawPile, GameData.DiscardPile, true);
 }
示例#2
0
 public void LoadGameState(GameData data)
 {
     GameData            = data;
     GameDataManipulator = new GameDataManipulator(GameData);
     PolicyDeck          = new PolicyDeck(data.DrawPile, data.DiscardPile, false);
 }