Ejemplo n.º 1
0
        public ArenaControl()
        {
            ItemID = 0x1f13;
            Visible = false;

            Name = "General Arena";
            m_Active = false;
            m_Occupied = false;
            m_Supplied = false;
            m_Set = "General";
            m_Type = ArenaType.OneVsOne;
            m_AnnouncerSpot = new Point3D(0,0,0);
            m_HoldingArea = new Point3D(0, 0, 0);
            m_ExitArea = new Point3D(0,0,0);
            m_FightingAreaOne = new List<Point3D>();
            m_FightingAreaTwo = new List<Point3D>();
            m_StagingAreaOne = new List<Point3D>();
            m_StagingAreaTwo = new List<Point3D>();
            m_Arena = new ArenaRegion(this);
            m_Spectator = new SpectatorRegion(this);
        }
Ejemplo n.º 2
0
        public void UpdateRegions()
        {
            if (m_Arena != null)
                m_Arena.Unregister();

            if (this.Map != null && this.Active)
            {
                if (this != null && this.ArenaArea != null && this.ArenaArea.Length > 0)
                {
                    m_Arena = new ArenaRegion(this);
                    // m_Region.GoLocation = m_CustomGoLocation;  // REMOVED
                    m_Arena.Register();
                }
                else
                    m_Arena = null;
            }
            else
                m_Arena = null;

            if (m_Spectator != null)
                m_Spectator.Unregister();

            if (this.Map != null && this.Active)
            {
                if (this != null && this.SpectatorArea != null && this.SpectatorArea.Length > 0)
                {
                    m_Spectator = new SpectatorRegion(this);
                    // m_Region.GoLocation = m_CustomGoLocation;  // REMOVED
                    m_Spectator.Register();
                }
                else
                    m_Spectator = null;
            }
            else
                m_Spectator = null;
        }