예제 #1
0
        public Map(string mapPath, IMapSaver saver, IMapLoader loader, IMapFiller filler)
        {
            this._saver  = saver;
            this._loader = loader;
            this._filler = filler;

            _tilesMap    = loader.LoadMapFromBmp();
            _playerCount = 0;

            tileWidth  = _gameFieldWidth / _tilesMap.GetLength(1);
            tileHeight = _gameFieldHeight / _tilesMap.GetLength(0);

            FillTileMap();
            FillPoints();
        }