#include <mapreader.h>
Definition at line 34 of file mapreader.h.
Static Public Member Functions | |
| static Map * | readMap (const std::string &filename) |
| Read an XML map from a file. | |
| static Map * | readMap (xmlNodePtr node, const std::string &path) |
| Read an XML map from a parsed XML tree. | |
Static Private Member Functions | |
| static void | readProperties (xmlNodePtr node, Properties *props) |
| Reads the properties element. | |
| static void | readLayer (xmlNodePtr node, Map *map) |
| Reads a map layer and adds it to the given map. | |
| static Tileset * | readTileset (xmlNodePtr node, const std::string &path, Map *map) |
| Reads a tile set. | |
| static int | getProperty (xmlNodePtr node, const char *name, int def) |
| Gets an integer property from an xmlNodePtr. | |
| Map * MapReader::readMap | ( | const std::string & | filename | ) | [static] |
| Map * MapReader::readMap | ( | xmlNodePtr | node, | |
| const std::string & | path | |||
| ) | [static] |
Read an XML map from a parsed XML tree.
The path is used to find the location of referenced tileset images.
Definition at line 204 of file mapreader.cpp.
| void MapReader::readProperties | ( | xmlNodePtr | node, | |
| Properties * | props | |||
| ) | [static, private] |
Reads the properties element.
| node | The properties element. | |
| props | The Properties instance to which the properties will be assigned. |
Definition at line 288 of file mapreader.cpp.
| void MapReader::readLayer | ( | xmlNodePtr | node, | |
| Map * | map | |||
| ) | [static, private] |
| static int MapReader::getProperty | ( | xmlNodePtr | node, | |
| const char * | name, | |||
| int | def | |||
| ) | [static, private] |
Gets an integer property from an xmlNodePtr.
1.5.5