Changeset 3501 in orxonox.OLD for orxonox/branches/levelloader/src/story_entities/campaign.cc
- Timestamp:
- Mar 11, 2005, 5:28:38 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/levelloader/src/story_entities/campaign.cc
r3499 r3501 33 33 Campaign::~Campaign () {} 34 34 35 Campaign::Campaign ( TiXMLElement* root) 36 { 37 TiXMLElement* element; 38 39 assert( root != NULL); 40 GameLoader* loader = GameLoader::getInstance(); 41 42 this->entities = new ListTemplate<StoryEntity>(); 43 this->isInit = false; 44 45 // grab all the necessary parameters 46 47 // find WorldList 48 element = root->FirstChildElement( "WorldList"); 49 50 // load Worlds 51 while( element != NULL) 52 { 53 StoryEntity created = loader->fabricate( element); 54 if( created != NULL) addEntity( created); 55 element = element->nextSiblingElement(); 56 } 57 } 35 58 36 59 ErrorMessage Campaign::init()
Note: See TracChangeset
for help on using the changeset viewer.