Exemple #1
0
            public void EnterActualTricks()
            {
                string[] names  = GetNames();
                int[]    actual = LineEditor.RequestIntBatch("Enter Tricks", _players.Length, names, 0, 255);

                if (actual != null)
                {
                    for (int i = 0; i < _players.Length; i++)
                    {
                        _players[i].setActualTricks((byte)actual[i]);
                    }
                }
            }
Exemple #2
0
            private void RoundOver()
            {
                int[] points =
                    LineEditor.RequestIntBatch("Enter points", _players.Length, GetNames(), 0, 255);

                if (points != null)
                {
                    for (int i = 0; i < _players.Length; i++)
                    {
                        _players[i].add((byte)points[i]);
                    }
                }
            }
Exemple #3
0
            public void EnterGuessTricks()
            {
                string[] names   = GetNames();
                int[]    entered = new int[_players.Length];

                for (int i = 0; i < entered.Length; i++)
                {
                    entered[i] = _players[i].TricksGuess;
                }

                int[] guesses = LineEditor.RequestIntBatch("Enter Guesses", _players.Length, names, 0, 127);

                if (guesses != null)
                {
                    for (int i = 0; i < _players.Length; i++)
                    {
                        _players[i].TricksGuess = (sbyte)guesses[i];
                    }
                }
            }