Changeset 507 for code/branches/FICN/src/loader/LevelLoader.h
- Timestamp:
- Dec 12, 2007, 11:34:58 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/loader/LevelLoader.h
r480 r507 7 7 8 8 #include <string> 9 #include <vector> 9 10 #include <iostream> 10 11 … … 23 24 class _LoaderExport LevelLoader 24 25 { 26 public: 27 // Constructors, loads the level file and some information data 28 LevelLoader(string file, string dir="levels"); 29 // Destructor 30 ~LevelLoader(); 31 // Shows a simple loading screen 32 void showLoadingScreen(); 33 // Loads all level data 34 void loadLevel(); 35 36 // Getters 37 string name(); 38 string description(); 39 string image(); 25 40 private: 26 41 // Level information … … 36 51 std::string loadingBarHeight_; 37 52 53 // Set to true if it was possible to load the level file 38 54 bool valid_; 39 55 56 // Xml-Stuff 40 57 TiXmlDocument doc; 41 58 TiXmlElement* rootElement; 42 public:43 59 44 // Constructors45 LevelLoader(string file, string dir="levels");46 ~LevelLoader();47 48 void showLoadingScreen();49 void loadLevel();50 51 // Getters52 string name();53 string description();54 string image();55 56 // Managers57 58 60 59 61 };
Note: See TracChangeset
for help on using the changeset viewer.