Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6874 in orxonox.OLD for trunk/src/story_entities/campaign_data.cc


Ignore:
Timestamp:
Jan 30, 2006, 11:03:30 PM (18 years ago)
Author:
patrick
Message:

trunk: the menu control better implemented

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/story_entities/campaign_data.cc

    r6834 r6874  
    139139
    140140
     141/**
     142 * @param storyID the story ID to look for
     143 * @returns a pointer to a StoryEntity with the storyID
     144 */
     145StoryEntity* 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}
    141155
    142 
Note: See TracChangeset for help on using the changeset viewer.