public override void createEnemies() { MonsterFactory oFactory = new MonsterFactory(); Monster Enemy; int rand = random.Next(5, 8); for (int i = 0; i < rand; i++) { Enemy = oFactory.CreateMonster("GigantSpider", 1); Enemy.setID(i); EnemyList.Add(Enemy); System.Threading.Thread.Sleep(100); } }
public override void createEnemies(Ambient ambient) { MonsterFactory oFactory = new MonsterFactory(); Monster Enemy; int rand = random.Next(5, 8); for (int i = 0; i < rand; i++) { string generatedMonster = ambient.getRandomMonster(); Enemy = oFactory.CreateMonster(generatedMonster, 1); Enemy.setID(i); EnemyList.Add(Enemy); System.Threading.Thread.Sleep(100); } }