HDB: Add the loadTiles() function to map-loader

This commit is contained in:
Nipun Garg 2019-06-07 18:11:56 +05:30 committed by Eugene Sandulenko
parent 79136f44d2
commit 0e58f9c9d1
2 changed files with 14 additions and 5 deletions

View File

@ -95,10 +95,18 @@ bool Map::load(Common::SeekableReadStream *stream) {
return true;
}
int MapLoader::loadTiles() {
warning("STUB: MAPLOADER: LOAD TILES");
return 0;
}
#endif
int Map::loadTiles() {
int tile, temp;
int skyIndex = 0;
// Load all tiles
for (uint j = 0; j < _height; j++) {
for (uint i = 0; i < _width; i++) {
tile = _background[j * _width + i];
}
}
return skyIndex;
}
}

View File

@ -51,6 +51,7 @@ public:
Map();
bool load(Common::SeekableReadStream *stream);
int loadTiles();
int mapX, mapY; // Coordinates of Map
int mapTileX, mapTileY; // Tile Coordinates of Map