public Game(int currentLevel) { this._currentLevel = currentLevel; this._numberLevels = ConsiderNumberLevels(); Level.Level LevelInfo = new Level.Level(); LevelInfo = ReadNewLevelOnFile(); _pacMan = new PacMan(LevelInfo.pacMan); Wall levelWall = new Wall(); levelWall.WallCordinate = LevelInfo.wall; this._map = new Map(levelWall, LevelInfo.numberColumns, LevelInfo.numberLines); this._pacMan = new PacMan(LevelInfo.pacMan); EnemyArtificialIntelligence _enemyAI = new EnemyArtificialIntelligence(_map.LevelFood.FoodCoordinates); this._enemys = new Enemys(LevelInfo.enemys, _enemyAI); _enemyTimer = new Timer(MakeMoveEnemy, null, 0, GameSettings.EnemySpeed); }
public Enemys(List<Point> enemyCoordinates, EnemyArtificialIntelligence enemyAI) { this._enemyCoordinates = enemyCoordinates; this._enemyAI = enemyAI; }
public Enemys(List <Point> enemyCoordinates, EnemyArtificialIntelligence enemyAI) { this._enemyCoordinates = enemyCoordinates; this._enemyAI = enemyAI; }