public WaveManager(MapManager masterManager, TowerDefenseGame masterGame, ContentManager content) { this.masterManager = masterManager; this.masterGame = masterGame; this.content = content; waveNumber = 0; timeUntilNextWave = 30; LoadTextures(); DefineWaveList(); this.nextWave = waveList[waveNumber + 1]; }
public void GenerateNextWave() { if (GetWaveNumber() + 1 >= waveList.Length) { this.nextWave = new Wave(this, masterGame, 10, new Monster(masterGame, masterManager, this, 70, monsterTextures["greenball"], masterManager.GetSpawnTiles()[0].GetXCoord(), masterManager.GetSpawnTiles()[0].GetYCoord())); } else { this.nextWave = waveList[GetWaveNumber() + 1]; } }
public void ProgressWaves() { timeUntilNextWave = 30; currentWave = nextWave; waveNumber++; GenerateNextWave(); }