Changeset 6731 for code/trunk/src/modules/pickup/PickupCollection.cc
- Timestamp:
- Apr 15, 2010, 2:47:39 PM (14 years ago)
- File:
-
- 1 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 }
Note: See TracChangeset
for help on using the changeset viewer.