Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/xml/src/loader/LevelLoader.h @ 140

Last change on this file since 140 was 140, checked in by nicolape, 16 years ago

XML-Loader so far…

File size: 767 bytes
Line 
1/**
2* Orxonox - www.orxonox.net
3* Level Loader class
4*
5* @author Nicolas Perrenoud <nicolape@ee.ethz.ch>
6*/
7
8#include <string>
9#include <iostream>
10
11#include "../xml/xmlParser.h"
12
13#ifndef __MODULE_LEVELLOADER__
14#define __MODULE_LEVELLOADER__
15
16using namespace std;
17
18namespace loader
19{
20        class LevelLoader
21        {
22        private:
23               
24                // XML Nodes
25                XMLNode rootNode; 
26                XMLNode worldNode;
27                XMLNode scriptNode;
28                XMLNode cameraNode;
29                XMLNode lightNode;
30               
31                // Level information
32                string name_;
33                string description_;
34                string image_;
35                       
36        public:
37
38                // Constructors
39                LevelLoader(string file, string dir="levels");
40                ~LevelLoader();
41               
42                void loadingScreen();
43               
44                // Getters
45                string name();
46                string description();
47                string image();         
48               
49                // Managers
50               
51                       
52        };     
53}
54#endif
Note: See TracBrowser for help on using the repository browser.