Changeset 9348 for code/trunk/src/modules/pickup/CollectiblePickup.h
- Timestamp:
- Aug 30, 2012, 11:08:17 PM (13 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:ignore
-
old new 1 .project 1 2 build 2 3 codeblocks 4 dependencies 3 5 vs 4 dependencies
-
- Property svn:mergeinfo changed
- Property svn:ignore
-
code/trunk/src/modules/pickup/CollectiblePickup.h
r7547 r9348 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. 74 75 void carrierDestroyed(void); //!< Is called by the PickupCarrier when it is being destroyed. 76 77 protected: 78 virtual void preDestroy(void); //!< Is called by OrxonoxClass::destroy() before the object is actually destroyed. 79 virtual void destroyPickup(void); //!< Destroys a Pickupable. 71 { return this->collection_ != NULL; } 80 72 81 73 private: 82 bool isInCollection_; //!< True if the CollectiblePickup is in a PickupCollection. 74 void wasAddedToCollection(PickupCollection* collection); 75 void wasRemovedFromCollection(void); 76 83 77 PickupCollection* collection_; //!< A pointer to the PickupCollection this CollectiblePickup is in. 84 85 78 }; 86 79 }
Note: See TracChangeset
for help on using the changeset viewer.