Beispiel #1
0
        public void AdvanceLevel()
        {
            MiniChampLevelInfo levelInfo = MiniChampInfo.GetInfo(m_Type).GetLevelInfo(++Level);

            if (levelInfo != null)
            {
                ClearSpawn();

                if (m_Type == MiniChampType.Minotaur)
                {
                    MinotaurShouts();
                }

                foreach (MiniChampTypeInfo typeInfo in levelInfo.Types)
                {
                    m_Spawn.Add(new MiniChampSpawnInfo(this, typeInfo));
                }
            }
            else             // begin restart
            {
                Stop();

                m_RestartTimer = Timer.DelayCall(m_RestartDelay, new TimerCallback(Start));
            }
        }
Beispiel #2
0
        public void AdvanceLevel()
        {
            MiniChampLevelInfo levelInfo = MiniChampInfo.GetInfo(m_Type).GetLevelInfo(++Level);

            if (levelInfo != null)
            {
                ClearSpawn();

                if (m_Type == MiniChampType.MeraktusTheTormented)
                {
                    MinotaurShouts();
                }

                //levelInfo.Types.ToList().ForEach(x => Spawn.Add(new MiniChampSpawnInfo(this, x)));
                foreach (var type in levelInfo.Types)
                {
                    Spawn.Add(new MiniChampSpawnInfo(this, type));
                }
            }
            else // begin restart
            {
                Stop();

                m_RestartTimer = Timer.DelayCall(m_RestartDelay, new TimerCallback(Start));
            }
        }
Beispiel #3
0
        public void AdvanceLevel()
        {
            Level++;

            MiniChampInfo      info      = MiniChampInfo.GetInfo(m_Type);
            MiniChampLevelInfo levelInfo = info.GetLevelInfo(Level);

            if (levelInfo != null && Level <= info.MaxLevel)
            {
                ClearSpawn();

                if (m_Type == MiniChampType.MeraktusTheTormented)
                {
                    MinotaurShouts();
                }

                foreach (MiniChampTypeInfo type in levelInfo.Types)
                {
                    Spawn.Add(new MiniChampSpawnInfo(this, type));
                }
            }
            else // begin restart
            {
                Stop();

                m_RestartTimer = Timer.DelayCall(m_RestartDelay, new TimerCallback(Start));
            }
        }
Beispiel #4
0
        public void AdvanceLevel()
        {
            Level++;

            MiniChampInfo      info      = MiniChampInfo.GetInfo(m_Type);
            MiniChampLevelInfo levelInfo = info.GetLevelInfo(Level);

            if (levelInfo != null && Level <= info.MaxLevel)
            {
                ClearSpawn();

                if (m_Type == MiniChampType.MeraktusTheTormented)
                {
                    MinotaurShouts();
                }

                for (var index = 0; index < levelInfo.Types.Length; index++)
                {
                    MiniChampTypeInfo type = levelInfo.Types[index];

                    Spawn.Add(new MiniChampSpawnInfo(this, type));
                }
            }
            else // begin restart
            {
                Stop();

                StartRestartTimer();
            }
        }