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; }
public Game StartNewGame(int wordLength, PlayerBase player) { var game = new Game(this.GetStartWord(wordLength), player); this.Games.Add(game); return game; }
private void InitGame(Game game) { game.CurrentPlayerChanged += Game_CurrentPlayerChanged; game.Players.CollectionChanged += this.Players_CollectionChanged; }