summaryrefslogtreecommitdiff
path: root/src/resources/mapreader.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-21 00:03:11 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-02-21 00:03:11 +0000
commitf741c14337dd0850a7201f5aa2185e40a625353a (patch)
treedd1dd0cf95b6117e4a8aea96317f6301eaa078ed /src/resources/mapreader.h
parentf7214b33bf5cbb85df57e8d0035af7a25826e985 (diff)
downloadmana-f741c14337dd0850a7201f5aa2185e40a625353a.tar.gz
mana-f741c14337dd0850a7201f5aa2185e40a625353a.tar.bz2
mana-f741c14337dd0850a7201f5aa2185e40a625353a.tar.xz
mana-f741c14337dd0850a7201f5aa2185e40a625353a.zip
Updates to change log, file lists, lots of doxygen comments and small changes.
Diffstat (limited to 'src/resources/mapreader.h')
-rw-r--r--src/resources/mapreader.h12
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;
};