- Timestamp:
- Jun 4, 2012, 10:50:28 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2012merge/src/modules/pickup/PickupCollection.cc
r8305 r9279 79 79 } 80 80 this->pickups_.clear(); 81 81 82 82 if(this->pickupCollectionIdentifier_ != NULL) 83 83 delete this->pickupCollectionIdentifier_; … … 195 195 return; 196 196 197 // If at least all the enabled pickups of this PickupCollection are no longer picked up. 197 // If at least all the enabled pickups of this PickupCollection are no longer picked up. 198 198 if(this->pickedUpCounter_ <= this->disabledCounter_ && this->isPickedUp()) 199 199 this->Pickupable::destroy(); … … 218 218 SUPER(PickupCollection, clone, item); 219 219 220 PickupCollection* pickup = dynamic_cast<PickupCollection*>(item);220 PickupCollection* pickup = orxonox_cast<PickupCollection*>(item); 221 221 // Clone all Pickupables this PickupCollection consist of. 222 222 for(std::vector<CollectiblePickup*>::iterator it = this->pickups_.begin(); it != this->pickups_.end(); it++) … … 297 297 This is used internally by the CollectiblePickup class. 298 298 @param changed 299 The value the used status has changed to. 299 The value the used status has changed to. 300 300 */ 301 301 void PickupCollection::pickupChangedUsed(bool changed)
Note: See TracChangeset
for help on using the changeset viewer.