Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 742 was 742, checked in by landauf, 16 years ago

moved all files from misc and the tinyxml folder into the new util folder

File size: 1.3 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
[715]11#include <string>
12
[708]13#include "LoaderPrereqs.h"
[742]14#include "util/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
[715]25    LevelLoader(std::string file, std::string dir = "levels");
[659]26    // Destructor
[682]27    virtual ~LevelLoader();
[659]28    // Loads all level data
29    void loadLevel();
[164]30
[659]31    // Getters
[715]32    inline std::string name() {return name_; };
33    inline std::string description() {return description_; };
34    inline std::string image() {return image_; };
[659]35  private:
[660]36    //! Level information
[715]37    std::string name_;
38    std::string description_;
39    std::string image_;
40    std::string loadingBackgroundColor_;
41    std::string loadingBackgroundImage_;
42    std::string loadingBarImage_;
43    std::string loadingBarTop_;
44    std::string loadingBarLeft_;
45    std::string loadingBarWidth_;
46    std::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.