Ejemplo n.º 1
0
        void handHistoryParser_RoundHasTerminated()
        {
            Trace.WriteLine("Round has terminated");

            /* 1. Perform last statistics calculations
             * 2. Clear the statistics information relative to a single round
             * 3. Any player that hasn't played last round should be flagged as non-playing (and the hud window, removed)
             * 4. Set every player's HasPlayedLastRound flag to false, as to identify who will get eliminated
             * in future rounds
             * 5. Clear hand information from display window */

            for (int i = 0; i < PlayerList.Count; i++)
            {
                Player p = PlayerList[i];
                p.CalculateEndOfRoundStatistics();
                p.PrepareStatisticsForNewRound();

                if (!p.HasPlayedLastRound)
                {
                    p.DisposeHud();
                    p.IsPlaying = false;
                }
                p.HasPlayedLastRound = false;
            }

            /* Clear the table statistics relative to a single round */
            statistics.PrepareStatisticsForNewRound();

            if (DisplayWindow != null)
            {
                DisplayWindow.ClearHandInformation();
            }
        }