Changeset 6407 in orxonox.OLD for branches/network/src/story_entities/campaign_data.cc
- Timestamp:
- Jan 4, 2006, 3:40:30 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/network/src/story_entities/campaign_data.cc
r6404 r6407 33 33 34 34 this->currentEntity = NULL; 35 35 36 this->loadParams(root); 36 37 } … … 42 43 CampaignData::~CampaignData() 43 44 { 44 PRINTF( 3)("Deleting CampaignData\n");45 PRINTF(4)("Deleting CampaignData\n"); 45 46 while( !this->storyEntities.empty()) 46 47 { 47 48 StoryEntity* bo = this->storyEntities.back(); 48 49 this->storyEntities.pop_back(); 49 PRINTF( 3)("CampaignData is been deleted: nr %i\n", bo->getStoryID());50 PRINTF(4)("CampaignData is been deleted: nr %i\n", bo->getStoryID()); 50 51 delete bo; 51 52 } 52 53 } 53 54 54 55 55 … … 58 58 * @param root: The XML-element to load from 59 59 */ 60 void CampaignData::load Data(const TiXmlElement* root)60 void CampaignData::loadParams(const TiXmlElement* root) 61 61 { 62 LoadParamXML(root, "WorldList", this, CampaignData, load ParamsWorldList)62 LoadParamXML(root, "WorldList", this, CampaignData, loadData) 63 63 .describe("A List of Worlds to be loaded in this Campaign"); 64 64 } … … 69 69 * @param root: the XML-element to load from 70 70 */ 71 void CampaignData::load ParamsWorldList(const TiXmlElement* root)71 void CampaignData::loadData(const TiXmlElement* root) 72 72 { 73 73 if( root == NULL) … … 79 79 if( created != NULL) 80 80 this->addStoryEntity(created); 81 PRINTF(4)("Created a new StoryEntity and added it to the Campaign: id=%i\n", created->getStoryID()); 81 82 } 82 83 LOAD_PARAM_END_CYCLE(element);
Note: See TracChangeset
for help on using the changeset viewer.