Changeset 659 for code/branches/FICN/src/loader
- Timestamp:
- Dec 20, 2007, 4:10:08 PM (17 years ago)
- Location:
- code/branches/FICN/src/loader
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/loader/LevelLoader.cc
r655 r659 26 26 */ 27 27 28 #include <string>29 #include <vector>30 #include <iostream>28 // #include <string> 29 // #include <vector> 30 // #include <iostream> 31 31 #include <algorithm> 32 32 #include <iterator> … … 35 35 36 36 #include "LevelLoader.h" 37 #include "tinyxml/tinyxml.h"37 // #include "tinyxml/tinyxml.h" 38 38 #include "orxonox/core/CoreIncludes.h" 39 39 #include "orxonox/core/Error.h" … … 152 152 { 153 153 tNode = 0; 154 //FIXME something is worng, probably == 154 155 while( tNode = audioElem->IterateChildren( tNode ) ) 155 156 { … … 199 200 mLoadOverlay->hide(); 200 201 } 201 202 202 203 203 204 COUT(0) << "Loading finished!\n\n\n\n\n"; 204 205 } … … 211 212 212 213 213 string LevelLoader::name()214 {215 return this->name_;216 }217 218 string LevelLoader::description()219 {220 return this->description_;221 }222 223 string LevelLoader::image()224 {225 return this->image_;226 }227 228 214 229 215 } -
code/branches/FICN/src/loader/LevelLoader.h
r525 r659 2 2 * Orxonox - www.orxonox.net 3 3 * Level Loader class 4 * 4 * 5 5 * @author Nicolas Perrenoud <nicolape@ee.ethz.ch> 6 6 */ … … 22 22 namespace loader 23 23 { 24 class _LoaderExport LevelLoader 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 // Loads all level data 32 void loadLevel(); 33 34 // Getters 35 string name(); 36 string description(); 37 string image(); 38 private: 39 // Level information 40 std::string name_; 41 std::string description_; 42 std::string image_; 43 std::string loadingBackgroundColor_; 44 std::string loadingBackgroundImage_; 45 std::string loadingBarImage_; 46 std::string loadingBarTop_; 47 std::string loadingBarLeft_; 48 std::string loadingBarWidth_; 49 std::string loadingBarHeight_; 50 51 // Set to true if it was possible to load the level file 52 bool valid_; 53 54 // Xml-Stuff 55 TiXmlDocument doc; 56 TiXmlElement* rootElement; 24 class _LoaderExport LevelLoader 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 // Loads all level data 32 void loadLevel(); 57 33 58 59 }; 34 // Getters 35 inline string name() {return name_; }; 36 inline string description() {return description_; }; 37 inline string image() {return image_; }; 38 private: 39 // Level information 40 std::string name_; 41 std::string description_; 42 std::string image_; 43 std::string loadingBackgroundColor_; 44 std::string loadingBackgroundImage_; 45 std::string loadingBarImage_; 46 std::string loadingBarTop_; 47 std::string loadingBarLeft_; 48 std::string loadingBarWidth_; 49 std::string loadingBarHeight_; 50 51 // Set to true if it was possible to load the level file 52 bool valid_; 53 54 // Xml-Stuff 55 TiXmlDocument doc; 56 TiXmlElement* rootElement; 57 58 59 }; 60 60 } 61 61 #endif
Note: See TracChangeset
for help on using the changeset viewer.