Changeset 3557 in orxonox.OLD for orxonox/branches/levelloader/src/story_entities/campaign.cc
- Timestamp:
- Mar 15, 2005, 10:53:46 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/levelloader/src/story_entities/campaign.cc
r3542 r3557 42 42 int id; 43 43 44 PRINTF0("Loading Campaign...\n"); 45 44 46 assert( root != NULL); 45 47 GameLoader* loader = GameLoader::getInstance(); … … 52 54 if( string == NULL || sscanf(string, "%d", &id) != 1) 53 55 { 54 PRINTF (1)("Campaign is missing a proper 'identifier'\n");56 PRINTF0("Campaign is missing a proper 'identifier'\n"); 55 57 this->setStoryID( -1); 56 58 } … … 59 61 // find WorldList 60 62 element = root->FirstChildElement( "WorldList"); 63 if( element == NULL) 64 { 65 PRINTF0("Campaign is missing a proper 'WorldList'\n"); 66 } 67 else 68 element = element->FirstChildElement(); 61 69 62 70 // load Worlds/Subcampaigns/Whatever … … 81 89 } 82 90 83 84 ErrorMessage Campaign::start() 85 { 86 this->start(0); 87 } 88 89 90 ErrorMessage Campaign::start(int storyID = 0) 91 { 92 printf("World::start() - starting new StoryEntity Nr:%i\n", storyID); 91 ErrorMessage Campaign::start(int storyID) 92 { 93 printf("Camapaign::start() - starting new StoryEntity Nr:%i\n", storyID); 93 94 ErrorMessage errorCode; 94 95 if( !this->isInit) return errorCode; … … 97 98 StoryEntity* se = this->getStoryEntity(storyID); 98 99 this->currentEntity = se; 100 if( se == NULL) 101 { 102 printf("Camapaign::start() - Start StoryEntity not found\n"); 103 return errorCode; 104 } 99 105 while( se != NULL && this->running) 100 106 {
Note: See TracChangeset
for help on using the changeset viewer.