GlPortal Class Reference  0.1.1
Source code documentation of the free and open 3D action puzzle game.
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
XmlMapLoader.hpp
Go to the documentation of this file.
1 #ifndef RADIX_XMLMAPLOADER_HPP
2 #define RADIX_XMLMAPLOADER_HPP
3 
4 #include <string>
5 
6 #include <tinyxml2.h>
7 
9 
10 namespace radix {
11 
16 class XmlMapLoader : public MapLoader {
17 private:
18  tinyxml2::XMLHandle rootHandle;
19 
20 public:
25  void load(const std::string &path);
26 
27 private:
28  void extractMaterials();
32  void extractSpawn();
33  void extractLights();
34  void extractDoor();
35  void extractWalls();
36  void extractAcids();
37  void extractTriggers();
38  void extractModels();
39 };
40 
41 } /* namespace radix */
42 
43 #endif /* RADIX_XMLMAPLOADER_HPP */
void extractAcids()
Definition: XmlMapLoader.cpp:178
Definition: GameController.hpp:7
void extractDoor()
Definition: XmlMapLoader.cpp:129
XmlMapLoader(World &)
Definition: XmlMapLoader.cpp:25
Definition: MapLoader.hpp:12
void extractLights()
Extract a light elements containing position (x, y, z) and colour (r, g, b) attributes.
Definition: XmlMapLoader.cpp:100
void extractTriggers()
Definition: XmlMapLoader.cpp:203
tinyxml2::XMLHandle rootHandle
Definition: XmlMapLoader.hpp:18
void extractWalls()
Definition: XmlMapLoader.cpp:147
Load a map in GlPortal XML format.
Definition: XmlMapLoader.hpp:16
void extractMaterials()
Definition: XmlMapLoader.cpp:54
void extractSpawn()
Extract a spawn element containing its rotation and position elements.
Definition: XmlMapLoader.cpp:79
Definition: World.hpp:32
void extractModels()
Definition: XmlMapLoader.cpp:228
void load(const std::string &path)
Load data from XML into World.
Definition: XmlMapLoader.cpp:30