Last change
on this file since 414 was
379,
checked in by rgrieder, 17 years ago
|
- converted loader library to be compilable as a DLL
- added loader_platform.h and loader_prereq.h to do that
|
File size:
806 bytes
|
Rev | Line | |
---|
[164] | 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 | |
---|
[379] | 11 | #include "loader_platform.h" |
---|
[341] | 12 | #include "xml/xmlParser.h" |
---|
[164] | 13 | |
---|
| 14 | #ifndef __MODULE_LEVELLOADER__ |
---|
| 15 | #define __MODULE_LEVELLOADER__ |
---|
| 16 | |
---|
| 17 | using namespace std; |
---|
| 18 | |
---|
| 19 | namespace loader |
---|
| 20 | { |
---|
[379] | 21 | class _LoaderExport LevelLoader |
---|
[164] | 22 | { |
---|
| 23 | private: |
---|
| 24 | |
---|
| 25 | // XML Nodes |
---|
[379] | 26 | XMLNode rootNode; |
---|
[164] | 27 | XMLNode worldNode; |
---|
| 28 | XMLNode scriptNode; |
---|
| 29 | XMLNode cameraNode; |
---|
| 30 | XMLNode lightNode; |
---|
| 31 | |
---|
| 32 | // Level information |
---|
| 33 | string name_; |
---|
| 34 | string description_; |
---|
| 35 | string image_; |
---|
| 36 | |
---|
| 37 | public: |
---|
| 38 | |
---|
| 39 | // Constructors |
---|
| 40 | LevelLoader(string file, string dir="levels"); |
---|
| 41 | ~LevelLoader(); |
---|
| 42 | |
---|
| 43 | void loadingScreen(); |
---|
| 44 | |
---|
| 45 | // Getters |
---|
| 46 | string name(); |
---|
| 47 | string description(); |
---|
| 48 | string image(); |
---|
| 49 | |
---|
| 50 | // Managers |
---|
| 51 | |
---|
| 52 | |
---|
| 53 | }; |
---|
| 54 | } |
---|
| 55 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.