Ejemplo n.º 1
0
 public GameInfo(Game game)
     : this()
 {
     this.Id = game.Id;
       this.StartTime = game.StartTime;
       this.PlayerCount = game.Players.Count;
       this.StartPlayerName = game.StartPlayer.Name;
       this.StartWord = game.StartWord;
 }
Ejemplo n.º 2
0
 public Game StartNewGame(int wordLength, PlayerBase player)
 {
     var game = new Game(this.GetStartWord(wordLength), player);
       this.Games.Add(game);
       return game;
 }
Ejemplo n.º 3
0
 private void InitGame(Game game)
 {
     game.CurrentPlayerChanged += Game_CurrentPlayerChanged;
       game.Players.CollectionChanged += this.Players_CollectionChanged;
 }