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
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
[164]11#include <string>
[507]12#include <vector>
[164]13#include <iostream>
14
[678]15#include "LoaderPlatform.h"
[474]16#include "tinyxml/tinyxml.h"
[507]17
[471]18//#include "xml/xmlParser.h"
[164]19
20
21namespace loader
22{
[659]23  class _LoaderExport LevelLoader
24  {
25  public:
26    // Constructors, loads the level file and some information data
[673]27    LevelLoader(std::string file, std::string dir="levels");
[659]28    // Destructor
29    ~LevelLoader();
30    // Loads all level data
31    void loadLevel();
[164]32
[659]33    // Getters
[673]34    inline std::string name() {return name_; };
35    inline std::string description() {return description_; };
36    inline std::string image() {return image_; };
[659]37  private:
[660]38    //! Level information
[659]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
[660]50    //! Set to true if it was possible to load the level file
[659]51    bool valid_;
52
53    // Xml-Stuff
54    TiXmlDocument doc;
55    TiXmlElement* rootElement;
56
57  };
[164]58}
[673]59
60#endif /* _LevelLoader_H__ */
Note: See TracBrowser for help on using the repository browser.