public GameHandler(DisplayScript display, GameInput gameInput, GameMaster gameMaster)
 {
     enemiesOnMap    = new List <Enemy>();
     this.display    = display;
     floorNumber     = 1;
     input           = gameInput;
     this.gameMaster = gameMaster;
 }
        public Map(int[][] intMap, DisplayScript display, GameHandler gm, int rowAmmount, int ColumnAmmount)
        {
            dontShow       = false;
            gameMaster     = gm;
            mapRowLimit    = rowAmmount;
            mapColumnLimit = ColumnAmmount;
            this.display   = display;
            this.tileMap   = new Tile[mapRowLimit][];
            int rowCounter = 0;

            foreach (int[] intRow in intMap)
            {
                this.tileMap[rowCounter] = new Tile[mapColumnLimit];
                int columnCounter = 0;
                foreach (int integer in intRow)
                {
                    if (integer == 2)
                    {
                        tileMap[rowCounter][columnCounter]     = gameMaster.hero;
                        gameMaster.hero.positionX              = columnCounter;
                        gameMaster.hero.positionY              = rowCounter;
                        gameMaster.hero.currentCenterPositionX = columnCounter;
                        gameMaster.hero.currentCenterPositionY = rowCounter;
                    }
                    else
                    {
                        this.tileMap[rowCounter][columnCounter] = TileFactory.Get(integer, columnCounter, rowCounter, this);
                    }
                    if (integer == 6 || integer == 3 || integer == 8 || integer == 9 || integer == 11)
                    {
                        gameMaster.AddEnemyToList((Enemy)this.tileMap[rowCounter][columnCounter]);
                    }

                    columnCounter++;
                }
                rowCounter++;
            }
            display.RandomizeDungeonColor();
        }