Example #1
0
 public Wave(WaveManager pParent, int nWaveNumber, int nMaxEnemies)
 {
     m_pParent = pParent;
     m_nWaveNumber = nWaveNumber;
     m_nMaxEnemies = nMaxEnemies;
     m_rgEnemyStatus = new EnemyStatus[nMaxEnemies];
     for(int i = 0; i < nMaxEnemies; i++)
         m_rgEnemyStatus[i] = new EnemyStatus();
 }
Example #2
0
        public void LoadContent(ContentManager pContent)
        {
            for (int i = 0; i < Constants.MAXENEMIES; i += 2)
            {
                m_rgEnemies[i] = new BloodMaggot(m_pParent);
                m_rgEnemies[i].LoadContent(pContent);

                // Detta är temporärt. Behöver väl ladda in dessa separat(kanske en egen array?)
                m_rgEnemies[i + 1] = new TempEnemy(m_pParent);
                m_rgEnemies[i + 1].LoadContent(pContent);
            }

            m_pWaveManager = new WaveManager(this);
            m_pWaveManager.LoadContent(pContent);
        }