- Timestamp:
- Jun 10, 2012, 11:01:40 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2012merge/src/modules/pickup/CollectiblePickup.h
r7547 r9290 55 55 class _PickupExport CollectiblePickup : public Pickupable 56 56 { 57 friend class PickupCollection; 57 58 58 59 public: … … 68 69 */ 69 70 bool isInCollection(void) const 70 { return this->isInCollection_; } 71 72 bool addToCollection(PickupCollection* collection); //!< Adds this CollectiblePickup to the input PickupCollection. 73 bool removeFromCollection(void); //!< Removes this CollectiblePickup from its PickupCollection. 71 { return this->collection_ != NULL; } 74 72 75 73 void carrierDestroyed(void); //!< Is called by the PickupCarrier when it is being destroyed. 76 74 77 pr otected:78 v irtual void preDestroy(void); //!< Is called by OrxonoxClass::destroy() before the object is actually destroyed.79 v irtual void destroyPickup(void); //!< Destroys a Pickupable.75 private: 76 void wasAddedToCollection(PickupCollection* collection); 77 void wasRemovedFromCollection(void); 80 78 81 private:82 bool isInCollection_; //!< True if the CollectiblePickup is in a PickupCollection.83 79 PickupCollection* collection_; //!< A pointer to the PickupCollection this CollectiblePickup is in. 84 85 80 }; 86 81 }
Note: See TracChangeset
for help on using the changeset viewer.