Changeset 6901 for code/trunk
- Timestamp:
- May 15, 2010, 8:47:07 AM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/data/levels/pickup.oxw
r6731 r6901 114 114 <!-- Pickup Collection pickups --> 115 115 116 < !--PickupSpawner position="0,-25,-100" triggerDistance="10" respawnTime="30" maxSpawnedItems="10">116 <PickupSpawner position="0,-25,-100" triggerDistance="10" respawnTime="30" maxSpawnedItems="10"> 117 117 <pickup> 118 118 <PickupCollection template=triplehealthspeedinvisibilitypickup /> 119 119 </pickup> 120 </PickupSpawner -->120 </PickupSpawner> 121 121 122 122 </Scene> -
code/trunk/src/modules/pickup/PickupCollection.cc
r6731 r6901 123 123 for(std::vector<WeakPtr<Pickupable> >::iterator it = this->pickups_.begin(); it != this->pickups_.end(); it++) 124 124 { 125 (*it).get()->setCarrier(this->getCarrier() );125 (*it).get()->setCarrier(this->getCarrier()->getTarget(*it)); 126 126 } 127 127 } -
code/trunk/src/orxonox/interfaces/Pickupable.cc
r6731 r6901 102 102 Returns true if the given PickupCarrier is a target. 103 103 */ 104 bool Pickupable::isTarget( constPickupCarrier* carrier) const104 bool Pickupable::isTarget(PickupCarrier* carrier) const 105 105 { 106 106 if(carrier == NULL) -
code/trunk/src/orxonox/interfaces/Pickupable.h
r6731 r6901 98 98 bool dropped(void); //!< Sets the Pickupable to not picked up or dropped. 99 99 100 virtual bool isTarget( constPickupCarrier* carrier) const; //!< Get whether the given PickupCarrier is a target of this pickup.100 virtual bool isTarget(PickupCarrier* carrier) const; //!< Get whether the given PickupCarrier is a target of this pickup. 101 101 bool isTarget(const Identifier* identifier) const; //!< Get whether a given class, represented by the input Identifier, is a target of this Pickupable. 102 102 bool addTarget(PickupCarrier* target); //!< Add a PickupCarrier as target of this pickup.
Note: See TracChangeset
for help on using the changeset viewer.