Changeset 469 for code/branches/FICN/src
- Timestamp:
- Dec 12, 2007, 2:15:24 PM (17 years ago)
- Location:
- code/branches/FICN/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/loader/LevelLoader.cc
r347 r469 15 15 dir.append("/"); 16 16 dir.append(file); 17 rootNode = XMLNode::openFileHelper(dir.c_str()," WorldDataFile");17 rootNode = XMLNode::openFileHelper(dir.c_str(),"orxonoxworld"); 18 18 // TODO: Error handling 19 19 20 20 // Assing general level infos to class variables 21 this->name_ = rootNode.getChildNode("name").getText();22 this->description_ = rootNode.getChildNode("description").getText();23 this->image_ = rootNode.getChildNode("image").getText();21 //this->name_ = (std::string)rootNode.getAttribute("name").getText(); 22 //this->image_ = (std::string)rootNode.getAttribute("image").getText(); 23 //this->description_ = (std::string)rootNode.getChildNode("description").getText(); 24 24 25 this->loadingScreen();25 //this->loadingScreen(); 26 26 27 27 // Assign sub-nodes -
code/branches/FICN/src/loader/LevelLoader.h
r379 r469 25 25 // XML Nodes 26 26 XMLNode rootNode; 27 XMLNode loadingScreenNode; 27 28 XMLNode worldNode; 28 XMLNode scriptNode; 29 XMLNode cameraNode; 30 XMLNode lightNode; 29 XMLNode audioNode; 30 XMLNode scriptsNode; 31 31 32 32 // Level information -
code/branches/FICN/src/orxonox/orxonox.cc
r462 r469 221 221 auMan_ = new audio::AudioManager(); 222 222 // load this file from config 223 string levelFile = "s p_level_moonstation.oxw";223 string levelFile = "sample.oxw"; 224 224 loader_ = new loader::LevelLoader(levelFile); 225 225 //TODO: run engine
Note: See TracChangeset
for help on using the changeset viewer.