Changeset 10294 in orxonox.OLD for branches/heathaze/src/story_entities/story_entity.cc
- Timestamp:
- Jan 18, 2007, 5:38:35 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/heathaze/src/story_entities/story_entity.cc
r9869 r10294 132 132 this->nextStoryID = nextStoryID; 133 133 } 134 135 136 /** 137 * sets the id of the next story entity by name 138 * @param nextStoryName the story name of the next StoryEntity 139 */ 140 bool StoryEntity::setNextStoryName(const std::string& nextStoryName) 141 { 142 for (ObjectList<StoryEntity>::const_iterator it = StoryEntity::objectList().begin(); 143 it != StoryEntity::objectList().end(); 144 ++it) 145 if( (*it)->getName().compare(nextStoryName) == 0) 146 { 147 this->setNextStoryID( (*it)->getStoryID() ); 148 return true; 149 } 150 151 return false; 152 } 153 134 154 135 155 /**
Note: See TracChangeset
for help on using the changeset viewer.