public void NewLevel() { fLevel++; switch (fLevel) { case 1: Bat = new Bat(this.Boundaries, fRandom); fEnemies = new List <Enemy> { Bat }; Enemies = fEnemies; var Sword = new Sword(this.Boundaries, fRandom); WeaponInRoom = Sword; break; case 2: Ghost = new Ghost(this.Boundaries, fRandom); fEnemies = new List <Enemy> { Ghost }; Enemies = fEnemies; var PotionBlue = new PotionBlue(this.Boundaries, fRandom); WeaponInRoom = PotionBlue; break; case 3: Bat = new Bat(this.Boundaries, fRandom); Ghost = new Ghost(this.Boundaries, fRandom); fEnemies = new List <Enemy> { Bat, Ghost }; Enemies = fEnemies; break; } }
public void NewLevel() { fLevel++; switch (fLevel) { case 1: Bat = new Bat(this.Boundaries, fRandom); fEnemies = new List<Enemy> { Bat }; Enemies = fEnemies; var Sword = new Sword(this.Boundaries, fRandom); WeaponInRoom = Sword; break; case 2: Ghost = new Ghost(this.Boundaries, fRandom); fEnemies = new List<Enemy> { Ghost }; Enemies = fEnemies; var PotionBlue = new PotionBlue(this.Boundaries, fRandom); WeaponInRoom = PotionBlue; break; case 3: Bat = new Bat(this.Boundaries, fRandom); Ghost = new Ghost(this.Boundaries, fRandom); fEnemies = new List<Enemy> { Bat, Ghost }; Enemies = fEnemies; break; } }