Esempio n. 1
0
        private void ScoreReceived(List <Player> players)
        {
            ps = new PlayerScore6(0, 0, 0, 0, 0, 0);

            Players = players;

            ps.CurrentGame = Players[_turn].CurrentGame;

            Players[_turn].Turn = false;
            _turn++;

            if (_turn == 6)
            {
                _turn = 0;
            }

            CurrentPlayer = Players[_turn].Name;

            ps.Player1Score = Players[0].Score;
            ps.Player2Score = Players[1].Score;
            ps.Player3Score = Players[2].Score;
            ps.Player4Score = Players[3].Score;
            ps.Player5Score = Players[4].Score;
            ps.Player6Score = Players[5].Score;

            Items.Add(ps);
        }
Esempio n. 2
0
        private void MessageReceived(List <Player> players)
        {
            Players = players;

            Player1 = players[0].Name.ToUpper();
            Player2 = players[1].Name.ToUpper();
            Player3 = players[2].Name.ToUpper();
            Player4 = players[3].Name.ToUpper();
            Player5 = players[4].Name.ToUpper();
            Player6 = players[5].Name.ToUpper();

            CurrentPlayer = Player1;

            ps = new PlayerScore6(0, 0, 0, 0, 0, 0);
        }