예제 #1
0
        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);
        }
예제 #2
0
        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);
        }