Example #1
0
        /// <summary>
        /// Triggers the Spawner's spawn methods for the barrier crystal
        /// Spawns the General and a set amount of minions
        /// </summary>
        public void CrystalSpawn()
        {
            ArrayList minions;
            if (CSpawner != null)
            {
                minions = CSpawner.SpawnMinions(1, this);
                General = CSpawner.SpawnGeneral(this);
            }
            else
            {
                CSpawner = new CitySpawner(this);
                minions = CSpawner.SpawnMinions(1, this);
                General = CSpawner.SpawnGeneral(this);
            }

            m_Mobiles.AddRange(minions);
            m_Mobiles.Add(General);
        }