- Timestamp:
- Jun 10, 2012, 11:01:40 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/presentation2012merge/src/modules/pickup/PickupCollection.h
r8351 r9290 89 89 bool addPickupable(CollectiblePickup* pickup); //!< Add the input Pickupable to list of Pickupables combined by this PickupCollection. 90 90 const Pickupable* getPickupable(unsigned int index) const; //!< Get the Pickupable at the given index. 91 bool removePickupable(CollectiblePickup* pickup); //!< Removes the input Pickupable from the list of Pickupables in this PickupCollection. 92 93 inline const std::list<CollectiblePickup*>& getPickups() const 94 { return this->pickups_; } 91 95 92 96 void pickupChangedUsed(bool changed); //!< Informs the PickupCollection, that one of its pickups has changed its used status to the input value. … … 95 99 96 100 protected: 97 void initializeIdentifier(void); //!< Initializes the PickupIdentifier for this pickup.98 99 101 virtual bool createSpawner(void); //!< Facilitates the creation of a PickupSpawner upon dropping of the Pickupable. 100 102 … … 105 107 void changedPickedUpAction(void); //!< Helper method. 106 108 107 std:: vector<CollectiblePickup*> pickups_; //!< The list of the pointers of all the Pickupables this PickupCollection consists of. They are weak pointers to facilitate testing, whether the pointers are still valid.109 std::list<CollectiblePickup*> pickups_; //!< The list of the pointers of all the Pickupables this PickupCollection consists of. They are weak pointers to facilitate testing, whether the pointers are still valid. 108 110 109 111 unsigned int usedCounter_; //!< Keeps track of the number of pickups of this PickupCollection, that are in use.
Note: See TracChangeset
for help on using the changeset viewer.