Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 680 was 678, checked in by rgrieder, 17 years ago
  • put visual studio files in a separate folder
  • added vs property sheets to simplify handling of properties
File size: 1.3 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 <string>
12#include <vector>
13#include <iostream>
14
15#include "LoaderPlatform.h"
16#include "tinyxml/tinyxml.h"
17
18//#include "xml/xmlParser.h"
19
20
21namespace loader
22{
23  class _LoaderExport LevelLoader
24  {
25  public:
26    // Constructors, loads the level file and some information data
27    LevelLoader(std::string file, std::string dir="levels");
28    // Destructor
29    ~LevelLoader();
30    // Loads all level data
31    void loadLevel();
32
33    // Getters
34    inline std::string name() {return name_; };
35    inline std::string description() {return description_; };
36    inline std::string image() {return image_; };
37  private:
38    //! Level information
39    std::string name_;
40    std::string description_;
41    std::string image_;
42    std::string loadingBackgroundColor_;
43    std::string loadingBackgroundImage_;
44    std::string loadingBarImage_;
45    std::string loadingBarTop_;
46    std::string loadingBarLeft_;
47    std::string loadingBarWidth_;
48    std::string loadingBarHeight_;
49
50    //! Set to true if it was possible to load the level file
51    bool valid_;
52
53    // Xml-Stuff
54    TiXmlDocument doc;
55    TiXmlElement* rootElement;
56
57  };
58}
59
60#endif /* _LevelLoader_H__ */
Note: See TracBrowser for help on using the repository browser.