Last change
on this file since 710 was
708,
checked in by rgrieder, 17 years ago
|
- added Vector2, Vector3, Matrix3, ColourValue, Quaternion and String to the misc folder as header files
(each of them contains #include <string> … typedef std::string String , etc.)
- please use String from now on by including <misc/String.h"
- removed #include <OgreVector3.h", etc. from "CoreIncludes.h" (adjusted all source files)
- adjusted all the source files (except network, that keeps <string> for the moment) (what a mess..)
- moved usleep hack to misc/Sleep.h
- relative include paths for files from other root directories (like misc, network, etc.)
(but it stills writes "../Orxonox.h" when in folder orxonox/objects)
- "OgreSceneManager.h" —> <OgreSceneManager.h>
- included OrxonoxPrereqs in every file in folder orxonox
- moved HUD and ParticleInterface to namespace orxonox
- removed some using namespace Ogre/std when appropriate
- I hope I haven't forgotten important points..
|
File size:
1.4 KB
|
Line | |
---|
1 | /** |
---|
2 | * Orxonox - www.orxonox.net |
---|
3 | * Level Loader class |
---|
4 | * |
---|
5 | * @author Nicolas Perrenoud <nicolape@ee.ethz.ch> |
---|
6 | */ |
---|
7 | |
---|
8 | #ifndef _LevelLoader_H__ |
---|
9 | #define _LevelLoader_H__ |
---|
10 | |
---|
11 | #include "LoaderPrereqs.h" |
---|
12 | |
---|
13 | #include "misc/String.h" |
---|
14 | #include "tinyxml/tinyxml.h" |
---|
15 | |
---|
16 | class TiXmlDocument; // Forward declaration |
---|
17 | class TiXmlElement; // Forward declaration |
---|
18 | |
---|
19 | namespace loader |
---|
20 | { |
---|
21 | class _LoaderExport LevelLoader |
---|
22 | { |
---|
23 | public: |
---|
24 | // Constructors, loads the level file and some information data |
---|
25 | LevelLoader(orxonox::String file, orxonox::String dir = "levels"); |
---|
26 | // Destructor |
---|
27 | virtual ~LevelLoader(); |
---|
28 | // Loads all level data |
---|
29 | void loadLevel(); |
---|
30 | |
---|
31 | // Getters |
---|
32 | inline orxonox::String name() {return name_; }; |
---|
33 | inline orxonox::String description() {return description_; }; |
---|
34 | inline orxonox::String image() {return image_; }; |
---|
35 | private: |
---|
36 | //! Level information |
---|
37 | orxonox::String name_; |
---|
38 | orxonox::String description_; |
---|
39 | orxonox::String image_; |
---|
40 | orxonox::String loadingBackgroundColor_; |
---|
41 | orxonox::String loadingBackgroundImage_; |
---|
42 | orxonox::String loadingBarImage_; |
---|
43 | orxonox::String loadingBarTop_; |
---|
44 | orxonox::String loadingBarLeft_; |
---|
45 | orxonox::String loadingBarWidth_; |
---|
46 | orxonox::String loadingBarHeight_; |
---|
47 | |
---|
48 | //! Set to true if it was possible to load the level file |
---|
49 | bool valid_; |
---|
50 | |
---|
51 | // Xml-Stuff |
---|
52 | TiXmlDocument doc_; |
---|
53 | TiXmlElement *rootElement_; |
---|
54 | }; |
---|
55 | } |
---|
56 | |
---|
57 | #endif /* _LevelLoader_H__ */ |
---|
Note: See
TracBrowser
for help on using the repository browser.