Changeset 5751 in orxonox.OLD for trunk/src/story_entities
- Timestamp:
- Nov 24, 2005, 1:14:06 AM (19 years ago)
- Location:
- trunk/src/story_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/campaign.cc
r5671 r5751 91 91 return; 92 92 93 const TiXmlElement* element = root->FirstChildElement(); 94 // load Worlds/Subcampaigns/Whatever 95 StoryEntity* lastCreated = NULL; 96 while( element != NULL) 93 LOAD_PARAM_START_CYCLE(root, element); 97 94 { 98 95 PRINTF(5)("Campaign: Constructor: adding a world\n"); 99 96 StoryEntity* created = (StoryEntity*) GameLoader::getInstance()->fabricate(element); 100 /*101 if( lastCreated != NULL)102 created->setNextStoryID( lastCreated->getStoryID());103 else104 created->setNextStoryID( WORLD_ID_GAMEEND);105 */106 97 if( created != NULL) 107 98 { 108 99 this->addEntity( created); 109 lastCreated = created; 110 } 111 element = element->NextSiblingElement(); 100 } 112 101 } 102 LOAD_PARAM_END_CYCLE(element); 113 103 } 114 104 -
trunk/src/story_entities/world.cc
r5750 r5751 371 371 EventHandler::getInstance()->subscribe(this->localPlayer, ES_GAME, KeyMapper::PEV_NEXT_WEAPON); 372 372 EventHandler::getInstance()->subscribe(this->localPlayer, ES_GAME, KeyMapper::PEV_PREVIOUS_WEAPON); 373 EventHandler::getInstance()->subscribe(this->localPlayer, ES_GAME, SDLK_PAGEUP); 374 EventHandler::getInstance()->subscribe(this->localPlayer, ES_GAME, SDLK_PAGEDOWN); 373 375 374 376 // bind camera
Note: See TracChangeset
for help on using the changeset viewer.