Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/FICN/src/loader/LevelLoader.h @ 708

Last change on this file since 708 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
RevLine 
[164]1/**
2* Orxonox - www.orxonox.net
3* Level Loader class
[659]4*
[164]5* @author Nicolas Perrenoud <nicolape@ee.ethz.ch>
6*/
7
[673]8#ifndef _LevelLoader_H__
9#define _LevelLoader_H__
10
[708]11#include "LoaderPrereqs.h"
[164]12
[708]13#include "misc/String.h"
[474]14#include "tinyxml/tinyxml.h"
[507]15
[682]16class TiXmlDocument;   // Forward declaration
17class TiXmlElement;    // Forward declaration
[164]18
19namespace loader
20{
[659]21  class _LoaderExport LevelLoader
22  {
23  public:
24    // Constructors, loads the level file and some information data
[708]25    LevelLoader(orxonox::String file, orxonox::String dir = "levels");
[659]26    // Destructor
[682]27    virtual ~LevelLoader();
[659]28    // Loads all level data
29    void loadLevel();
[164]30
[659]31    // Getters
[708]32    inline orxonox::String name() {return name_; };
33    inline orxonox::String description() {return description_; };
34    inline orxonox::String image() {return image_; };
[659]35  private:
[660]36    //! Level information
[708]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_;
[659]47
[660]48    //! Set to true if it was possible to load the level file
[659]49    bool valid_;
50
51    // Xml-Stuff
[682]52    TiXmlDocument doc_;
53    TiXmlElement *rootElement_;
[659]54  };
[164]55}
[673]56
57#endif /* _LevelLoader_H__ */
Note: See TracBrowser for help on using the repository browser.