Beispiel #1
0
        /// <summary>
        /// Change the specified name and players.
        /// </summary>
        /// <param name='name'>
        /// Name.
        /// </param>
        /// <param name='players'>
        /// Players.
        /// </param>
        public void Change(string name, Scrabble.Player.Player[] players)
        {
            scoresTable.HideAll();
            for (int i = 0; i < game.players.Length; i++)
            {
                if (typeof(Player.ComputerPlayer) == game.players[i].GetType())
                {
                    scoreValues[i].Markup = game.players[i].Name + " <span size=\"smaller\">(CPU)</span>";
                }
                else
                {
                    scoreValues[i].Text = game.players[i].Name + "  ";
                }
                scoreValues[i + 6].Text = string.Format("{0}", game.players[i].Score);
            }

            scoresTable.ShowAll();
        }