Changeset 5115 in orxonox.OLD for trunk/src/story_entities
- Timestamp:
- Aug 24, 2005, 1:30:13 AM (19 years ago)
- Location:
- trunk/src/story_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/campaign.cc
r5111 r5115 154 154 */ 155 155 tIterator<StoryEntity>* it = this->entities->getIterator(); 156 se = it-> nextElement();156 se = it->firstElement(); 157 157 while( se != NULL) 158 158 { … … 284 284 285 285 tIterator<StoryEntity>* iterator = this->entities->getIterator(); 286 StoryEntity* entity = iterator-> nextElement();286 StoryEntity* entity = iterator->firstElement(); 287 287 while( entity != NULL) 288 288 { -
trunk/src/story_entities/world.cc
r5111 r5115 118 118 PRINTF(3)("World::~World() - deleting current world\n"); 119 119 120 ParticleEngine::getInstance()->debug();121 122 120 // here everything that is alocated by the World is deleted 123 121 delete this->entities; 124 122 State::setWorldEntityList(NULL); 123 125 124 126 125 delete LightManager::getInstance(); … … 135 134 FastFactory::flushAll(true); 136 135 136 137 137 // erease everything that is left. 138 138 delete NullParent::getInstance(); … … 140 140 141 141 // unload the resources !! 142 ResourceManager::getInstance()->unload(this->music);142 // ResourceManager::getInstance()->unload(this->music); 143 143 ResourceManager::getInstance()->unloadAllByPriority(RP_LEVEL); 144 144 } … … 761 761 void World::debug() 762 762 { 763 PRINTF(0)("Printing out the List of alive WorldEntities:\n"); 764 tIterator<WorldEntity>* iterator = this->entities->getIterator(); 765 WorldEntity* entity = iterator->firstElement(); 766 while( entity != NULL) 767 { 768 PRINTF(0)("%s::%s\n", entity->getClassName(), entity->getName()); 769 entity = iterator->nextElement(); 770 } 771 delete iterator; 763 772 } 764 773 … … 864 873 865 874 tIterator<WorldEntity>* iterator = this->entities->getIterator(); 866 WorldEntity* entity = iterator-> nextElement();875 WorldEntity* entity = iterator->firstElement(); 867 876 while( entity != NULL) 868 877 { … … 951 960 glLoadIdentity(); 952 961 tIterator<WorldEntity>* iterator = this->entities->getIterator(); 953 entity = iterator-> nextElement();962 entity = iterator->firstElement(); 954 963 while( entity != NULL ) 955 964 {
Note: See TracChangeset
for help on using the changeset viewer.