예제 #1
0
파일: Map.cs 프로젝트: Confirmit/Students
 public Map(Wall levelWall,int numberColumns,int numberLines)
 {
     this._numberColumns = numberColumns;
     this._numberLines = numberLines;
     this._levelWall = levelWall;
     this._levelFood = InitialiazeFood();
 }
예제 #2
0
파일: Game.cs 프로젝트: Confirmit/Students
        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);
        }