Last change
on this file since 356 was
164,
checked in by nicolasc, 17 years ago
|
Brute force megre of xml branch
|
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 | |
---|
16 | using namespace std; |
---|
17 | |
---|
18 | namespace 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.