Changeset 3608 in orxonox.OLD for orxonox/trunk/src/story_entities/campaign.cc
- Timestamp:
- Mar 20, 2005, 11:37:26 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/story_entities/campaign.cc
r3472 r3608 20 20 #include "world.h" 21 21 #include "camera.h" 22 #include "story_entity.h" 22 //#include "story_entity.h" 23 #include "list.h" 23 24 24 25 using namespace std; … … 27 28 Campaign::Campaign () 28 29 { 29 this->entities = new ListTemplate<StoryEntity>();30 this->entities = new tList<StoryEntity>(); 30 31 this->isInit = false; 31 32 } … … 184 185 if( storyID == WORLD_ID_GAMEEND) 185 186 return NULL; 186 ListTemplate<StoryEntity>* l; 187 188 /* 189 tList<StoryEntity>* l; 187 190 StoryEntity* entity = NULL; 188 191 l = this->entities->getNext(); … … 191 194 entity = l->getObject(); 192 195 l = l->getNext(); 196 193 197 int id = entity->getStoryID(); 194 198 //printf("Campaing::getStoryEntity() - now looping, found entity nr=%i\n", id); … … 198 202 return entity; 199 203 } 200 } 204 205 } 206 */ 207 208 209 210 StoryEntity* entity = this->entities->enumerate(); 211 while( entity != NULL) 212 { 213 int id = entity->getStoryID(); 214 //printf("Campaing::getStoryEntity() - now looping, found entity nr=%i\n", id); 215 if(id == storyID) 216 { 217 //printf("Campaing::getStoryEntity() - yea, this is what we where looking for: %id\n"); 218 return entity; 219 } 220 entity = this->entities->nextElement(); 221 } 222 223 224 201 225 return NULL; 202 226 }
Note: See TracChangeset
for help on using the changeset viewer.