public Player(Level level, Texture2D towerTexture, Texture2D bulletTexture) { this.level = level; this.towerTexture = towerTexture; this.bulletTexture = bulletTexture; }
public Wave(int waveNumber, int numOfEnemies, Player player, Level level, Texture2D enemyTexture, Texture2D healthtexture) { this.waveNumber = waveNumber; this.numOfEnemies = numOfEnemies; this.player = player; this.level = level; this.enemyTexture = enemyTexture; this.healthTexture = healthtexture; }
public WaveManager(Player player, Level level, int numberOfWaves, Texture2D enemyTexture, Texture2D healthTexture) { this.numberOfWaves = numberOfWaves; this.enemyTexture = enemyTexture; this.level = level; for (int i = 0; i < numberOfWaves; i++) { int initialNumerOfEnemies = 6; int numberModifier = (i / 6) + 1; Wave wave = new Wave(i, initialNumerOfEnemies * numberModifier, player, level, enemyTexture, healthTexture); waves.Enqueue(wave); } StartNextWave(); }