Changeset 7370 in orxonox.OLD for trunk/src/story_entities/simple_game_menu.cc
- Timestamp:
- Apr 26, 2006, 1:31:01 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/simple_game_menu.cc
r7324 r7370 253 253 ErrorMessage SimpleGameMenu::unloadData() 254 254 { 255 256 255 EventHandler::getInstance()->unsubscribe(this, ES_MENU); 257 256 … … 316 315 317 316 /** 318 * no collision detection in the menu317 * @brief no collision detection in the menu 319 318 */ 320 319 void SimpleGameMenu::collide() … … 325 324 326 325 /** 327 * animate the scene326 * @brief animate the scene 328 327 */ 329 328 void SimpleGameMenu::animateScene(float dt) … … 337 336 338 337 /** 339 * event dispatcher funciton338 * @brief event dispatcher funciton 340 339 * @param event the incoming event 341 340 */ … … 515 514 * @param root reference to the xml root element 516 515 */ 517 ErrorMessage SimpleGameMenuData::loadGUI( TiXmlElement* root)516 ErrorMessage SimpleGameMenuData::loadGUI(const TiXmlElement* root) 518 517 { 519 518 /* call underlying function */ … … 536 535 * @param root reference to the xml root parameter 537 536 */ 538 ErrorMessage SimpleGameMenuData::loadWorldEntities(TiXmlElement* root) 539 { 540 TiXmlElement* element = root->FirstChildElement("WorldEntities"); 537 ErrorMessage SimpleGameMenuData::loadWorldEntities(const TiXmlElement* root) 538 { 539 GameWorldData::loadWorldEntities(root); 540 /* 541 const TiXmlElement* element = root->FirstChildElement("WorldEntities"); 541 542 542 543 if( element != NULL) … … 544 545 element = element->FirstChildElement(); 545 546 PRINTF(4)("Loading WorldEntities\n"); 546 while( 547 while(element != NULL) 547 548 { 548 549 BaseObject* created = Factory::fabricate(element); … … 550 551 printf("Created a %s: %s\n", created->getClassName(), created->getName()); 551 552 552 if( element->Value() != NULL && !strcmp( element->Value(), "SkyBox"))553 if( element->Value() == "SkyBox") 553 554 this->sky = dynamic_cast<WorldEntity*>(created); 554 if( element->Value() != NULL && !strcmp( element->Value(), "Terrain"))555 if( element->Value() == "Terrain") 555 556 this->terrain = dynamic_cast<Terrain*>(created); 556 557 element = element->NextSiblingElement(); 557 558 } 559 558 560 PRINTF(4)("Done loading WorldEntities\n"); 559 561 } 560 562 561 / * init the pnode tree */563 // init the pnode tree 562 564 PNode::getNullParent()->init(); 565 */ 563 566 } 564 567 … … 578 581 * @param root reference to the xml root element 579 582 */ 580 ErrorMessage SimpleGameMenuData::loadScene( TiXmlElement* root)583 ErrorMessage SimpleGameMenuData::loadScene(const TiXmlElement* root) 581 584 { 582 585 /* call underlying function */
Note: See TracChangeset
for help on using the changeset viewer.