Changeset 9325 for code/branches
- Timestamp:
- Jul 21, 2012, 11:24:47 PM (12 years ago)
- Location:
- code/branches/presentation2012merge/src/modules/pickup
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2012merge/src/modules/pickup/CollectiblePickup.cc
r9324 r9325 62 62 /** 63 63 @brief 64 Is called by the PickupCarrier when it is being destroyed.65 */66 void CollectiblePickup::carrierDestroyed(void)67 {68 if(!this->isInCollection())69 this->Pickupable::destroy();70 else // If the CollectiblePickup is part of a PickupCollection it is just dropped instead of destroyed.71 this->drop(false);72 }73 74 /**75 @brief76 64 Is called when the pickup has transited from used to unused or the other way around. 77 65 */ -
code/branches/presentation2012merge/src/modules/pickup/CollectiblePickup.h
r9290 r9325 71 71 { return this->collection_ != NULL; } 72 72 73 void carrierDestroyed(void); //!< Is called by the PickupCarrier when it is being destroyed.74 75 73 private: 76 74 void wasAddedToCollection(PickupCollection* collection);
Note: See TracChangeset
for help on using the changeset viewer.