Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 15, 2010, 2:47:39 PM (15 years ago)
Author:
dafrick
Message:

PickupCollection is broken for now because to make it work drastic changes would have to be made. I wil fix it at a later date, though.

Location:
code/trunk/src/modules/pickup
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/modules/pickup/PickupCollection.cc

    r6540 r6731  
    176176        Returns true if the PickupCarrier identified by the input PickupIdentififer it is a target of this PickupCollection, false if not.
    177177    */
    178     bool PickupCollection::isTarget(Identifier* identifier) const
     178    bool PickupCollection::isTarget(PickupCarrier* carrier) const
    179179    {
    180180        for(std::vector<WeakPtr<Pickupable> >::const_iterator it = this->pickups_.begin(); it != this->pickups_.end(); it++)
    181181        {
    182             if(!(*it).get()->isTarget(identifier))
     182            if(!carrier->isTarget((*it).get()))
    183183                return false;
    184184        }
  • code/trunk/src/modules/pickup/PickupCollection.h

    r6540 r6731  
    6767            virtual void clone(OrxonoxClass*& item); //!< Creates a duplicate of the input OrxonoxClass.
    6868           
    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.
    7070           
    7171            virtual const PickupIdentifier* getPickupIdentifier(void); //!< Get the PickupIdentifier of this PickupCollection.
Note: See TracChangeset for help on using the changeset viewer.