diff options
Diffstat (limited to 'src/resources/mapreader.h')
-rw-r--r-- | src/resources/mapreader.h | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/src/resources/mapreader.h b/src/resources/mapreader.h index b2a076ec..69c531de 100644 --- a/src/resources/mapreader.h +++ b/src/resources/mapreader.h @@ -68,21 +68,27 @@ class MapReader private: /** - * Helper function that handles reading a map layer. + * Reads a map layer. */ static void readLayer(xmlNodePtr node, Map *map, int layer); /** - * Helper function that handles reading a tile set. + * Reads a tile set. */ static Tileset *readTileset(xmlNodePtr node, const std::string &path, Map *map); /** - * Helper function to get an integer property. + * Gets an integer property from an xmlNodePtr. */ static int getProperty(xmlNodePtr node, const char* name, int def); + /** + * Converts a global tile id to the Image* pointing to the associated + * tile image. + */ + static Image *getTileWithGid(int gid); + static std::vector<Tileset*> tilesets; }; |