Changeset 11510
- Timestamp:
- Oct 23, 2017, 4:41:56 PM (7 years ago)
- Location:
- code/branches/HUD_HS16/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/HUD_HS16/src/modules/overlays/hud/HUDPickupItem.cc
r11336 r11510 59 59 HUDPickupItem::~HUDPickupItem() 60 60 { 61 if (this->isInitialized())61 /*if (this->isInitialized()) 62 62 { 63 63 overlayElement_=nullptr; 64 } 64 }*/ 65 65 } 66 66 … … 79 79 assert(this->background_); 80 80 overlayElement_->hide(); 81 this->background_->removeChild(overlayElement_->getName());81 //this->background_->removeChild(overlayElement_->getName()); 82 82 } 83 83 } -
code/branches/HUD_HS16/src/modules/overlays/hud/HUDPickupSystem.cc
r11351 r11510 56 56 HUDPickupSystem::~HUDPickupSystem() 57 57 { 58 if (this->isInitialized())58 /*if (this->isInitialized()) 59 59 { 60 60 this->picks.clear(); 61 } 61 }*/ 62 62 } 63 63 … … 107 107 { 108 108 assert(pickup); 109 orxout()<< "removePickup called with " << pickup << endl; 109 110 HUDPickupItem* item = this->picks.find(pickup)->second; 110 orxout( internal_info, context::pickups) << "removePickup: pickup= " << pickup << " item= " << item << endl;111 assert(item);111 orxout() << "removePickup: pickup= " << pickup << " item= " << item << endl; 112 //assert(item); 112 113 item->hideMe(pickup, repaint); 113 assert(overlayElement_); 114 assert(this->background_); 115 this->picks.erase(pickup); 114 orxout() << "i am hidden now" << endl; 115 //assert(overlayElement_); 116 //assert(this->background_); 117 //this->picks.erase(pickup); 118 orxout()<< "end removePickup method" << endl; 116 119 } 117 120 -
code/branches/HUD_HS16/src/modules/pickup/PickupManager.cc
r11336 r11510 103 103 // Destroying all the WeakPointers that are still there. 104 104 this->pickups_.clear(); 105 106 105 this->indexes_.clear(); 107 106 108 orxout( internal_info, context::pickups) << "PickupManager destroyed." << endl;107 orxout() << "PickupManager destroyed." << endl; 109 108 } 110 109 … … 317 316 if(pickupSystem) 318 317 pickupSystem->removePickup(pickup); 318 orxout() << "end of pickupChangedPickedUp" << endl; 319 319 } 320 320 -
code/branches/HUD_HS16/src/orxonox/interfaces/Pickupable.cc
r11071 r11510 80 80 if(this->isPickedUp()) 81 81 this->drop(false); // Drops the pickup without creating a PickupSpawner. 82 orxout()<< "end of preDestroy" << endl; 82 83 } 83 84 … … 98 99 void Pickupable::destroyPickup(void) 99 100 { 101 orxout()<< "beginning of actual destroy" << endl; 100 102 if(!this->isBeingDestroyed()) 101 103 this->Destroyable::destroy(); 102 104 else 103 105 orxout(internal_warning, context::pickups) << this->getIdentifier()->getName() << " may be unsafe. " << endl; 106 orxout()<<"end of actual destroy" << endl; 104 107 } 105 108
Note: See TracChangeset
for help on using the changeset viewer.