Changeset 6874 in orxonox.OLD for trunk/src/story_entities/campaign_data.cc
- Timestamp:
- Jan 30, 2006, 11:03:30 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/campaign_data.cc
r6834 r6874 139 139 140 140 141 /** 142 * @param storyID the story ID to look for 143 * @returns a pointer to a StoryEntity with the storyID 144 */ 145 StoryEntity* CampaignData::getLevel(int storyID) 146 { 147 list<StoryEntity*>::iterator it; 148 for( it = this->storyEntities.begin(); it != this->storyEntities.end(); it++) 149 { 150 if( storyID == (*it)->getStoryID()) 151 return (*it); 152 } 153 return NULL; 154 } 141 155 142
Note: See TracChangeset
for help on using the changeset viewer.