public List <IAGameObject> CreateEnemies() { _gameData.WriteToConsole(new[] { "Loading AI...\r" }); List <IAGameObject> enemies = new List <IAGameObject>(); enemies.Add(_aiFactory.GetAi(0)); //enemies.Add(_aiFactory.GetAi(1)); enemies.Add(_aiFactory.GetAi(0)); //enemies.Add(_aiFactory.GetAi(1)); enemies.Add(_aiFactory.GetAi(0)); //enemies.Add(_aiFactory.GetAi(1)); enemies.Add(_aiFactory.GetAi(0)); //enemies.Add(_aiFactory.GetAi(1)); enemies.Add(_aiFactory.GetAi(0)); //enemies.Add(_aiFactory.GetAi(1)); return(enemies); }
private List <IAGameObject> CreateEnemies() { _gameData.WriteToConsole(new[] { "Loading AI...\r" }); List <IAGameObject> enemies = new List <IAGameObject>(); foreach (int enemyType in _levelModel.AiTypes) { enemies.Add(_aiFactory.GetAi(enemyType)); } return(enemies); }