Changeset 5801 for code/branches/core5/src/orxonox
- Timestamp:
- Sep 26, 2009, 10:25:03 PM (15 years ago)
- Location:
- code/branches/core5/src/orxonox
- Files:
-
- 27 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/core5/src/orxonox/PawnManager.cc
r5738 r5801 57 57 { 58 58 if (!it->isAlive()) 59 delete (*(it++));59 (it++)->destroy(); 60 60 else 61 61 ++it; … … 63 63 64 64 if (count == 0) 65 delete this;65 this->destroy(); 66 66 } 67 67 } -
code/branches/core5/src/orxonox/PlayerManager.cc
r5738 r5801 85 85 // delete PlayerInfo instance 86 86 if (player) 87 delete player;87 player->destroy(); 88 88 } 89 89 } -
code/branches/core5/src/orxonox/controllers/WaypointController.cc
r5738 r5801 50 50 { 51 51 for (size_t i = 0; i < this->waypoints_.size(); ++i) 52 delete this->waypoints_[i];52 this->waypoints_[i]->destroy(); 53 53 } 54 54 } -
code/branches/core5/src/orxonox/gametypes/Gametype.cc
r5795 r5801 419 419 if (it->getGametype() == this) 420 420 { 421 delete (*(it++));421 (it++)->destroy(); 422 422 ++i; 423 423 } -
code/branches/core5/src/orxonox/graphics/ParticleEmitter.cc
r5747 r5801 63 63 { 64 64 this->detachOgreObject(this->particles_->getParticleSystem()); 65 delete this->particles_;65 this->particles_->destroy(); 66 66 } 67 67 } … … 101 101 if (this->particles_) 102 102 { 103 delete this->particles_;103 this->particles_->destroy(); 104 104 this->particles_ = 0; 105 105 } -
code/branches/core5/src/orxonox/graphics/ParticleSpawner.cc
r5738 r5801 126 126 void ParticleSpawner::destroyParticleSpawner() 127 127 { 128 delete this;128 this->destroy(); 129 129 } 130 130 } -
code/branches/core5/src/orxonox/infos/HumanPlayer.cc
r5738 r5801 64 64 { 65 65 if (this->humanHud_) 66 delete this->humanHud_;66 this->humanHud_->destroy(); 67 67 68 68 if (this->gametypeHud_) 69 delete this->gametypeHud_;69 this->gametypeHud_->destroy(); 70 70 } 71 71 } … … 170 170 if (this->humanHud_) 171 171 { 172 delete this->humanHud_;172 this->humanHud_->destroy(); 173 173 this->humanHud_ = 0; 174 174 } … … 186 186 if (this->gametypeHud_) 187 187 { 188 delete this->gametypeHud_;188 this->gametypeHud_->destroy(); 189 189 this->gametypeHud_ = 0; 190 190 } -
code/branches/core5/src/orxonox/infos/PlayerInfo.cc
r5738 r5801 66 66 if (this->controller_) 67 67 { 68 delete this->controller_;68 this->controller_->destroy(); 69 69 this->controller_ = 0; 70 70 } … … 131 131 if (this->controller_) 132 132 { 133 delete this->controller_;133 this->controller_->destroy(); 134 134 this->controller_ = 0; 135 135 } -
code/branches/core5/src/orxonox/items/Engine.cc
r5738 r5801 79 79 80 80 if (this->boostBlur_) 81 delete this->boostBlur_;81 this->boostBlur_->destroy(); 82 82 83 83 if(this->sound_ != NULL) … … 237 237 if (this->boostBlur_) 238 238 { 239 delete this->boostBlur_;239 this->boostBlur_->destroy(); 240 240 this->boostBlur_ = 0; 241 241 } -
code/branches/core5/src/orxonox/items/MultiStateEngine.cc
r5738 r5801 60 60 // We have no ship, so the effects are not attached and won't be destroyed automatically 61 61 for (std::list<WorldEntity*>::const_iterator it = this->activeEffects_.begin(); it != this->activeEffects_.end(); ++it) 62 delete (*it);62 (*it)->destroy(); 63 63 for (std::list<WorldEntity*>::const_iterator it = this->forwardEffects_.begin(); it != this->forwardEffects_.end(); ++it) 64 delete (*it);64 (*it)->destroy(); 65 65 for (std::list<WorldEntity*>::const_iterator it = this->boostEffects_.begin(); it != this->boostEffects_.end(); ++it) 66 delete (*it);66 (*it)->destroy(); 67 67 for (std::list<WorldEntity*>::const_iterator it = this->brakeEffects_.begin(); it != this->brakeEffects_.end(); ++it) 68 delete (*it);68 (*it)->destroy(); 69 69 } 70 70 } -
code/branches/core5/src/orxonox/overlays/OverlayGroup.cc
r3196 r5801 61 61 { 62 62 for (std::set<OrxonoxOverlay*>::iterator it = hudElements_.begin(); it != hudElements_.end(); ++it) 63 delete (*it);63 (*it)->destroy(); 64 64 } 65 65 -
code/branches/core5/src/orxonox/pickup/DroppedItem.cc
r5785 r5801 69 69 { 70 70 COUT(3) << "DroppedItem '" << this->item_->getPickupIdentifier() << "' picked up." << std::endl; 71 delete this;71 this->destroy(); 72 72 } 73 73 } … … 85 85 { 86 86 COUT(3) << "Delete DroppedItem with '" << this->item_->getPickupIdentifier() << "'" << std::endl; 87 delete this->item_;87 this->item_->destroy(); 88 88 } 89 89 90 delete this;90 this->destroy(); 91 91 } 92 92 -
code/branches/core5/src/orxonox/pickup/ModifierPickup.cc
r5738 r5801 139 139 this->timer_.stopTimer(); 140 140 141 delete this;141 this->destroy(); 142 142 143 143 return true; -
code/branches/core5/src/orxonox/pickup/PickupSpawner.cc
r5785 r5801 91 91 asItem->addTemplate(this->itemTemplate_); 92 92 PickupInventory::getImageForItem(asItem); 93 delete newObject;93 newObject->destroy(); 94 94 } 95 95 … … 174 174 } 175 175 else 176 delete newObject;176 newObject->destroy(); 177 177 } 178 178 } -
code/branches/core5/src/orxonox/pickup/items/HealthImmediate.cc
r5738 r5801 67 67 { 68 68 pawn->addHealth(this->recoveredHealth_); 69 delete this;69 this->destroy(); 70 70 } 71 71 -
code/branches/core5/src/orxonox/pickup/items/HealthUsable.cc
r5738 r5801 82 82 83 83 this->removeFrom(pawn); 84 delete this;84 this->destroy(); 85 85 } 86 86 } -
code/branches/core5/src/orxonox/pickup/items/Jump.cc
r5754 r5801 84 84 { 85 85 this->removeFrom(pawn); 86 delete this;86 this->destroy(); 87 87 } 88 88 } -
code/branches/core5/src/orxonox/weaponsystem/Weapon.cc
r5738 r5801 62 62 63 63 for (std::multimap<unsigned int, WeaponMode*>::iterator it = this->weaponmodes_.begin(); it != this->weaponmodes_.end(); ++it) 64 delete it->second;64 it->second->destroy(); 65 65 } 66 66 } -
code/branches/core5/src/orxonox/weaponsystem/WeaponPack.cc
r5738 r5801 54 54 55 55 while (!this->weapons_.empty()) 56 delete (*this->weapons_.begin());56 (*this->weapons_.begin())->destroy(); 57 57 58 58 for (std::set<DefaultWeaponmodeLink*>::iterator it = this->links_.begin(); it != this->links_.end(); ) 59 delete (*(it++));59 (*(it++))->destroy(); 60 60 } 61 61 } -
code/branches/core5/src/orxonox/weaponsystem/WeaponSystem.cc
r5738 r5801 62 62 63 63 while (!this->weaponSets_.empty()) 64 delete (this->weaponSets_.begin()->second);64 this->weaponSets_.begin()->second->destroy(); 65 65 66 66 while (!this->weaponPacks_.empty()) 67 delete (*this->weaponPacks_.begin());67 (*this->weaponPacks_.begin())->destroy(); 68 68 69 69 while (!this->weaponSlots_.empty()) 70 delete (*this->weaponSlots_.begin());70 (*this->weaponSlots_.begin())->destroy(); 71 71 72 72 while (!this->munitions_.empty()) 73 { delete (this->munitions_.begin()->second); this->munitions_.erase(this->munitions_.begin()); }73 { this->munitions_.begin()->second->destroy(); this->munitions_.erase(this->munitions_.begin()); } 74 74 } 75 75 } -
code/branches/core5/src/orxonox/worldentities/BigExplosion.cc
r5791 r5801 226 226 { 227 227 this->debris1_->detachOgreObject(this->debrisFire1_->getParticleSystem()); 228 delete this->debrisFire1_;228 this->debrisFire1_->destroy(); 229 229 } 230 230 if (this->debrisSmoke1_) 231 231 { 232 232 this->debris1_->detachOgreObject(this->debrisSmoke1_->getParticleSystem()); 233 delete this->debrisSmoke1_;233 this->debrisSmoke1_->destroy(); 234 234 } 235 235 … … 237 237 { 238 238 this->debris2_->detachOgreObject(this->debrisFire2_->getParticleSystem()); 239 delete this->debrisFire2_;239 this->debrisFire2_->destroy(); 240 240 } 241 241 if (this->debrisSmoke2_) 242 242 { 243 243 this->debris2_->detachOgreObject(this->debrisSmoke2_->getParticleSystem()); 244 delete this->debrisSmoke2_;244 this->debrisSmoke2_->destroy(); 245 245 } 246 246 … … 248 248 { 249 249 this->debris3_->detachOgreObject(this->debrisFire3_->getParticleSystem()); 250 delete this->debrisFire3_;250 this->debrisFire3_->destroy(); 251 251 } 252 252 if (this->debrisSmoke3_) 253 253 { 254 254 this->debris3_->detachOgreObject(this->debrisSmoke3_->getParticleSystem()); 255 delete this->debrisSmoke3_;255 this->debrisSmoke3_->destroy(); 256 256 } 257 257 … … 259 259 { 260 260 this->debris4_->detachOgreObject(this->debrisFire4_->getParticleSystem()); 261 delete this->debrisFire4_;261 this->debrisFire4_->destroy(); 262 262 } 263 263 if (this->debrisSmoke4_) 264 264 { 265 265 this->debris4_->detachOgreObject(this->debrisSmoke4_->getParticleSystem()); 266 delete this->debrisSmoke4_;266 this->debrisSmoke4_->destroy(); 267 267 } 268 268 } -
code/branches/core5/src/orxonox/worldentities/ControllableEntity.cc
r5738 r5801 96 96 97 97 if (this->xmlcontroller_) 98 delete this->xmlcontroller_;98 this->xmlcontroller_->destroy(); 99 99 100 100 if (this->hud_) 101 delete this->hud_;101 this->hud_->destroy(); 102 102 103 103 if (this->camera_) 104 delete this->camera_;104 this->camera_->destroy(); 105 105 106 106 for (std::list<CameraPosition*>::const_iterator it = this->cameraPositions_.begin(); it != this->cameraPositions_.end(); ++it) 107 delete (*it);107 (*it)->destroy(); 108 108 109 109 if (this->getScene()->getSceneManager()) … … 259 259 260 260 if (this->bDestroyWhenPlayerLeft_) 261 delete this;261 this->destroy(); 262 262 } 263 263 … … 303 303 { 304 304 this->camera_->detachFromParent(); 305 delete this->camera_;305 this->camera_->destroy(); 306 306 this->camera_ = 0; 307 307 } … … 309 309 if (this->hud_) 310 310 { 311 delete this->hud_;311 this->hud_->destroy(); 312 312 this->hud_ = 0; 313 313 } -
code/branches/core5/src/orxonox/worldentities/ExplosionChunk.cc
r5791 r5801 92 92 { 93 93 this->detachOgreObject(this->fire_->getParticleSystem()); 94 delete this->fire_;94 this->fire_->destroy(); 95 95 } 96 96 if (this->smoke_) 97 97 { 98 98 this->detachOgreObject(this->smoke_->getParticleSystem()); 99 delete this->smoke_;99 this->smoke_->destroy(); 100 100 } 101 101 } -
code/branches/core5/src/orxonox/worldentities/MovableEntity.cc
r5738 r5801 61 61 if (this->isInitialized()) 62 62 if (this->continuousResynchroTimer_) 63 delete this->continuousResynchroTimer_;63 this->continuousResynchroTimer_->destroy(); 64 64 } 65 65 -
code/branches/core5/src/orxonox/worldentities/WorldEntity.cc
r5738 r5801 119 119 { 120 120 if ((*it)->getDeleteWithParent()) 121 delete (*(it++));121 (*(it++))->destroy(); 122 122 else 123 123 { … … 132 132 delete this->physicalBody_; 133 133 } 134 delete this->collisionShape_;134 this->collisionShape_->destroy(); 135 135 136 136 this->node_->detachAllObjects(); -
code/branches/core5/src/orxonox/worldentities/pawns/Pawn.cc
r5738 r5801 97 97 98 98 if (this->weaponSystem_) 99 delete this->weaponSystem_;99 this->weaponSystem_->destroy(); 100 100 } 101 101 } -
code/branches/core5/src/orxonox/worldentities/pawns/SpaceShip.cc
r5738 r5801 75 75 { 76 76 if (this->isInitialized() && this->engine_) 77 delete this->engine_;77 this->engine_->destroy(); 78 78 } 79 79 … … 207 207 else 208 208 { 209 delete object;209 object->destroy(); 210 210 } 211 211 }
Note: See TracChangeset
for help on using the changeset viewer.