public void AddPlayer(ActivePlayer player) { //Save a reference to the game player.Game = this; //Add the player this.players.Add(player); }
public static ActivePlayer Create(IdlePlayer idlePlayer) { ActivePlayer activePlayer = new ActivePlayer(); activePlayer.Connection = idlePlayer.Connection; activePlayer.Name = idlePlayer.Name; activePlayer.PlayerId = idlePlayer.PlayerId; return activePlayer; }