Beispiel #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
     };
 }
Beispiel #2
0
 public TurnManager(IPlayer player, GameManager gameManager)
 {
     this.gameManager = gameManager;
     this.player = player;
 }
Beispiel #3
0
 public ActionLogger(GameManager gameManager)
 {
     this.gameManager = gameManager;
 }
Beispiel #4
0
 public GameInformation(GameManager gameManager)
 {
     this.gameManager = gameManager;
 }