Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 16, 2010, 12:37:09 PM (14 years ago)
Author:
dafrick
Message:

Documenting and cleanup.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/orxonox/interfaces/Pickupable.cc

    r7504 r7547  
    147147        Returns true if the given PickupCarrier is a target.
    148148    */
    149     bool Pickupable::isTarget(PickupCarrier* carrier) const
     149    bool Pickupable::isTarget(const PickupCarrier* carrier) const
    150150    {
    151151        if(carrier == NULL)
     
    165165    bool Pickupable::isTarget(const Identifier* identifier) const
    166166    {
    167         //! Iterate through all targets of this Pickupable.
     167        // Iterate through all targets of this Pickupable.
    168168        for(std::list<Identifier*>::const_iterator it = this->targets_.begin(); it != this->targets_.end(); it++)
    169169        {
     
    198198    bool Pickupable::addTarget(Identifier* target)
    199199    {
    200         if(this->isTarget(target)) //!< If the input target is already present in the list of targets.
     200        if(this->isTarget(target)) // If the input target is already present in the list of targets.
    201201            return false;
    202202
     
    216216    bool Pickupable::pickup(PickupCarrier* carrier)
    217217    {
    218         if(carrier == NULL || this->isPickedUp()) //!< If carrier is NULL or the Pickupable is already picked up.
     218        if(carrier == NULL || this->isPickedUp()) // If carrier is NULL or the Pickupable is already picked up.
    219219            return false;
    220220
Note: See TracChangeset for help on using the changeset viewer.