예제 #1
0
        private void AddPlayersToGame()
        {
            player1 = players.GetPlayerByName(Player1ComboBox.Text);
            player2 = players.GetPlayerByName(Player2ComboBox.Text);
            player3 = players.GetPlayerByName(Player3ComboBox.Text);
            players.AddPlayerToGame(player1, 1);
            players.AddPlayerToGame(player2, 2);
            players.AddPlayerToGame(player3, 3);

            queue = null;
            queue = new Queue <Player>(QueueType.CircleFIFO);
            queue.Add(player1);
            queue.Add(player2);
            queue.Add(player3);
        }