Changeset 3746 in orxonox.OLD for orxonox/branches/levelloader/src/story_entities/campaign.cc
- Timestamp:
- Apr 7, 2005, 3:54:49 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/levelloader/src/story_entities/campaign.cc
r3557 r3746 18 18 19 19 #include "campaign.h" 20 21 #include "story_entity.h" 22 20 23 #include "world.h" 21 24 #include "camera.h" 22 #include "story_entity.h"23 25 #include "factory.h" 24 26 #include "game_loader.h" 25 27 28 #include "list.h" 29 26 30 using namespace std; 27 31 … … 30 34 Campaign::Campaign () 31 35 { 32 this->entities = new ListTemplate<StoryEntity>();36 this->entities = new tList<StoryEntity>(); 33 37 this->isInit = false; 34 38 } 39 35 40 36 41 Campaign::~Campaign () {} … … 47 52 GameLoader* loader = GameLoader::getInstance(); 48 53 49 this->entities = new ListTemplate<StoryEntity>();54 this->entities = new tList<StoryEntity>(); 50 55 this->isInit = false; 51 56 … … 106 111 { 107 112 se->displayLoadScreen(); 113 se->preLoad(); 108 114 se->load(); 109 115 se->init(); … … 232 238 if( storyID == WORLD_ID_GAMEEND) 233 239 return NULL; 234 ListTemplate<StoryEntity>* l; 240 241 /* 242 tList<StoryEntity>* l; 235 243 StoryEntity* entity = NULL; 236 244 l = this->entities->getNext(); … … 239 247 entity = l->getObject(); 240 248 l = l->getNext(); 249 241 250 int id = entity->getStoryID(); 242 251 //printf("Campaing::getStoryEntity() - now looping, found entity nr=%i\n", id); … … 246 255 return entity; 247 256 } 248 } 257 258 } 259 */ 260 261 262 263 StoryEntity* entity = this->entities->enumerate(); 264 while( entity != NULL) 265 { 266 int id = entity->getStoryID(); 267 //printf("Campaing::getStoryEntity() - now looping, found entity nr=%i\n", id); 268 if(id == storyID) 269 { 270 //printf("Campaing::getStoryEntity() - yea, this is what we where looking for: %id\n"); 271 return entity; 272 } 273 entity = this->entities->nextElement(); 274 } 275 276 277 249 278 return NULL; 250 279 }
Note: See TracChangeset
for help on using the changeset viewer.