示例#1
0
        public void AddPlayer(ActivePlayer player)
        {
            //Save a reference to the game
            player.Game = this;

            //Add the player
            this.players.Add(player);
        }
示例#2
0
        public static ActivePlayer Create(IdlePlayer idlePlayer)
        {
            ActivePlayer activePlayer = new ActivePlayer();
            activePlayer.Connection = idlePlayer.Connection;
            activePlayer.Name = idlePlayer.Name;
            activePlayer.PlayerId = idlePlayer.PlayerId;

            return activePlayer;
        }