Changeset 347
- Timestamp:
- Nov 29, 2007, 4:32:22 PM (17 years ago)
- Location:
- code/branches/FICN/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/loader/LevelLoader.cc
r346 r347 15 15 dir.append("/"); 16 16 dir.append(file); 17 rootNode = XMLNode::openFileHelper( (const wchar_t*)dir.c_str(),(const wchar_t*)"WorldDataFile");17 rootNode = XMLNode::openFileHelper(dir.c_str(),"WorldDataFile"); 18 18 // TODO: Error handling 19 19 20 20 // Assing general level infos to class variables 21 this->name_ = (const char*)rootNode.getChildNode((const wchar_t*)"name").getText();22 this->description_ = (const char*)rootNode.getChildNode((const wchar_t*)"description").getText();23 this->image_ = (const char*)rootNode.getChildNode((const wchar_t*)"image").getText();21 this->name_ = rootNode.getChildNode("name").getText(); 22 this->description_ = rootNode.getChildNode("description").getText(); 23 this->image_ = rootNode.getChildNode("image").getText(); 24 24 25 25 this->loadingScreen(); 26 26 27 27 // Assign sub-nodes 28 if (rootNode.nChildNode( (const wchar_t*)"LightManager")==1)28 if (rootNode.nChildNode("LightManager")==1) 29 29 { 30 30 // Init Luightmanager... -
code/branches/FICN/src/loader/Light.cc
r346 r347 22 22 { 23 23 // Here comes the tricky part... convert strings to int 24 const char* diffuse = (const char*)xml.getAttribute((const wchar_t*)"diffuse-color");25 const char* coor = (const char*)xml.getAttribute((const wchar_t*)"abs-coor");24 const char* diffuse = xml.getAttribute("diffuse-color"); 25 const char* coor = xml.getAttribute("abs-coor"); 26 26 } 27 27 } -
code/branches/FICN/src/loader/LightManager.cc
r346 r347 14 14 if (!xml.isEmpty()) 15 15 { 16 int nLights = xml.nChildNode( (const wchar_t*)"light");16 int nLights = xml.nChildNode("light"); 17 17 for (int i=0; i<nLights;i++) 18 18 { 19 Light l = *(new Light(xml.getChildNode( (const wchar_t*)"light",i)));19 Light l = *(new Light(xml.getChildNode("light",i))); 20 20 this->elements_.insert(elements_.end(),l); 21 21 } -
code/branches/FICN/src/orxonox/orxonox.cc
r346 r347 271 271 { 272 272 273 //string levelFile = "sp_level_moonstation.oxw";274 //loader::LevelLoader* loader = new loader::LevelLoader(levelFile);273 string levelFile = "sp_level_moonstation.oxw"; 274 loader::LevelLoader* loader = new loader::LevelLoader(levelFile); 275 275 } 276 276 -
code/branches/FICN/src/xml/xmlParser.h
r164 r347 47 47 // The _XMLWIDECHAR preprocessor variable force the XMLParser library into either utf16/32-mode (the proprocessor variable 48 48 // must be defined) or utf8-mode(the pre-processor variable must be undefined). 49 #define _XMLWIDECHAR49 //#define _XMLWIDECHAR 50 50 #endif 51 51
Note: See TracChangeset
for help on using the changeset viewer.