Example #1
0
            /// <summary>
            /// Get the announcer on the map so as
            /// to not create a new mobile
            /// </summary>
            /// <returns></returns>
            private Announcer getAnn()
            {
                Announcer Ann = null;

                foreach (Mobile mob in Map.Felucca.GetMobilesInRange(a.AnnouncerSpot, 10))
                {
                    if (mob is Announcer && !mob.Deleted)
                    {
                        Ann = (Announcer)mob;
                    }
                }

                if(Ann == null)
                    Ann = new Announcer();
                Ann.CantWalk = true;
                Ann.Direction = Direction.South;
                Ann.MoveToWorld(a.AnnouncerSpot, a.Map);
                return Ann;
            }
Example #2
0
 public MatchTimer(TournamentTimer tournament, ArenaControl arena, Match bout)
     : base(TimeSpan.FromSeconds(1.0), TimeSpan.FromSeconds(1.0))
 {
     Priority = TimerPriority.OneSecond;
     t = tournament;
     b = bout;
     a = arena;
     a.Occupied = true;
     countdown = 6;
     started = false;
     cfinished = false;
     staging = TimeSpan.FromSeconds(30.0);
     announcer = getAnn();
     BeginStage();
 }