summaryrefslogtreecommitdiff
path: root/src/game-server/mapreader.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/game-server/mapreader.hpp')
-rw-r--r--src/game-server/mapreader.hpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/game-server/mapreader.hpp b/src/game-server/mapreader.hpp
index cb3e70ac..a809cdd9 100644
--- a/src/game-server/mapreader.hpp
+++ b/src/game-server/mapreader.hpp
@@ -45,27 +45,29 @@ class MapReader
static void readMap(const std::string &filename, MapComposite *composite);
private:
-
/**
* Read an XML map from a parsed XML tree, and populate things with objects
* in that map.
*/
static Map* readMap(xmlNodePtr node, std::string const &path,
MapComposite *composite, std::vector<Thing *> &things);
-
+
/**
* Reads a map layer and adds it to the given map.
*/
static void readLayer(xmlNodePtr node, Map *map);
/**
+ * Get the string value from the given object property node.
+ */
+ static std::string getObjectProperty(xmlNodePtr node, const std::string &def);
+
+ /**
* Get the integer value from the given object property node.
*/
static int getObjectProperty(xmlNodePtr node, int def);
static void setTileWithGid(Map *map, int x, int y, int gid);
-
-
};
#endif