summaryrefslogtreecommitdiff
path: root/src/resources/mapreader.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2005-07-26 22:33:53 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2005-07-26 22:33:53 +0000
commit9e4f25acd69489d949104eebec690ce5586849e6 (patch)
treedc4fe4483ece1a374bc44280c72e43cfd5725feb /src/resources/mapreader.h
parent34e18a818a7696629515c39b920ba35b64832748 (diff)
downloadmana-client-9e4f25acd69489d949104eebec690ce5586849e6.tar.gz
mana-client-9e4f25acd69489d949104eebec690ce5586849e6.tar.bz2
mana-client-9e4f25acd69489d949104eebec690ce5586849e6.tar.xz
mana-client-9e4f25acd69489d949104eebec690ce5586849e6.zip
OpenGL/SDL combined in the same exe. Not in the cutest way, but we'll find a
nicer approach after the release.
Diffstat (limited to 'src/resources/mapreader.h')
-rw-r--r--src/resources/mapreader.h26
1 files changed, 16 insertions, 10 deletions
diff --git a/src/resources/mapreader.h b/src/resources/mapreader.h
index d0faac6d..be38afeb 100644
--- a/src/resources/mapreader.h
+++ b/src/resources/mapreader.h
@@ -57,48 +57,54 @@ class MapReader
/**
* Read an XML map from a file.
*/
- static Map *readMap(const std::string &filename);
+ static Map*
+ readMap(const std::string &filename);
/**
* Read an XML map from a parsed XML tree. The path is used to find the
* location of referenced tileset images.
*/
- static Map *readMap(xmlNodePtr node, const std::string &path);
+ static Map*
+ readMap(xmlNodePtr node, const std::string &path);
private:
/**
* Reads a map layer.
*/
- static void readLayer(xmlNodePtr node, Map *map, int layer);
+ static void
+ readLayer(xmlNodePtr node, Map *map, int layer);
/**
* Reads a tile set.
*/
- static Tileset *readTileset(xmlNodePtr node, const std::string &path,
- Map *map);
+ static Tileset*
+ readTileset(xmlNodePtr node, const std::string &path, Map *map);
/**
* Gets an integer property from an xmlNodePtr.
*/
- static int getProperty(xmlNodePtr node, const char* name, int def);
+ 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 Image*
+ getTileWithGid(int gid);
/**
* Finds the tile set that a tile with the given global id is part of.
*/
- static Tileset *MapReader::getTilesetWithGid(int gid);
+ static Tileset*
+ getTilesetWithGid(int gid);
/**
* Sets a tile using a global tile id. Used by the layer loading
* routine.
*/
- static void MapReader::setTileWithGid(
- Map *map, int x, int y, int layer, int gid);
+ static void
+ setTileWithGid(Map *map, int x, int y, int layer, int gid);
static std::vector<Tileset*> tilesets;
};