Changeset 6731 for code/trunk/src/modules
- Timestamp:
- Apr 15, 2010, 2:47:39 PM (15 years ago)
- Location:
- code/trunk/src/modules/pickup
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/pickup/PickupCollection.cc
r6540 r6731 176 176 Returns true if the PickupCarrier identified by the input PickupIdentififer it is a target of this PickupCollection, false if not. 177 177 */ 178 bool PickupCollection::isTarget( Identifier* identifier) const178 bool PickupCollection::isTarget(PickupCarrier* carrier) const 179 179 { 180 180 for(std::vector<WeakPtr<Pickupable> >::const_iterator it = this->pickups_.begin(); it != this->pickups_.end(); it++) 181 181 { 182 if(! (*it).get()->isTarget(identifier))182 if(!carrier->isTarget((*it).get())) 183 183 return false; 184 184 } -
code/trunk/src/modules/pickup/PickupCollection.h
r6540 r6731 67 67 virtual void clone(OrxonoxClass*& item); //!< Creates a duplicate of the input OrxonoxClass. 68 68 69 virtual bool isTarget( Identifier* identifier) const; //!< Get whether a given class, represented by the input Identifier, is a target of this PickupCollection.69 virtual bool isTarget(PickupCarrier* carrier) const; //!< Get whether a given class, represented by the input Identifier, is a target of this PickupCollection. 70 70 71 71 virtual const PickupIdentifier* getPickupIdentifier(void); //!< Get the PickupIdentifier of this PickupCollection.
Note: See TracChangeset
for help on using the changeset viewer.