Ejemplo n.º 1
0
 private Board CreateBoard(GameManager gameManager)
 {
     return new Board
     {
         Countries = gameManager.Countries,
         Actions = gameManager.Actions,
         NextPhase = gameManager.CurrentPhase,
         ActivePlayer = gameManager.CurrentPlayer,
         Players = gameManager.Players.ToList(),
         GameEnded = gameManager.GameEnded,
         TimesWonByPlayers = RiskContext.GetStats().TimesWonByPlayer,
         Turn = gameManager.Turn,
         LastPhase = gameManager.LastPhase,
         LastPlayer = gameManager.LastPhase == EPhase.Move ? gameManager.LastPlayer : gameManager.CurrentPlayer
     };
 }
Ejemplo n.º 2
0
 public TurnManager(IPlayer player, GameManager gameManager)
 {
     this.gameManager = gameManager;
     this.player = player;
 }
Ejemplo n.º 3
0
 public ActionLogger(GameManager gameManager)
 {
     this.gameManager = gameManager;
 }
Ejemplo n.º 4
0
 public GameInformation(GameManager gameManager)
 {
     this.gameManager = gameManager;
 }