Beispiel #1
0
        public virtual void StartGame()
        {
            GameLocked = true;

            GameInProgress = true;

            InvalidateProperties();

            // if there are any non-participants in the arena area then kick them
            //ClearArena();

            GameBroadcast(100002); // "Let the games begin!"

            // set up the noto on everyone
            if (Participants != null)
            {
                foreach (IChallengeEntry entry in Participants)
                {
                    if (entry.Participant != null)
                    {
                        RefreshNoto(entry.Participant);
                        XmlPoints afrom = (XmlPoints)XmlAttach.FindAttachment(entry.Participant, typeof(XmlPoints));

                        // update the points gumps on the players if they are open
                        if (afrom != null && entry.Participant.HasGump(typeof(XmlPoints.PointsGump)))
                        {
                            afrom.OnIdentify(entry.Participant);
                        }
                    }
                }
            }


            // start the challenge timer
            StartChallengeTimer();
        }