Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 6, 2009, 3:53:50 PM (16 years ago)
Author:
danielh
Message:
  • some changes to the base framework
  • added DroppedItem
  • implemented usable items and a test UsableItem (Jump), console command to use an item is "useItem"
  • added ModifierType::Acceleration
Location:
code/branches/pickups
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/branches/pickups

    • Property svn:ignore set to
      build
      dependencies
  • code/branches/pickups/src/orxonox/objects/pickup/BaseItem.cc

    r2864 r2900  
    6363        this->setOwner(pawn);
    6464
    65         COUT(3) << "Adding '" << this->getPickupIdentifier() << "' item." << std::endl;
    66 
    67         return pawn->getPickups().add(this);
     65        if (pawn->getPickups().add(this))
     66        {
     67            COUT(3) << "Added '" << this->getPickupIdentifier() << "' item." << std::endl;
     68            return true;
     69        }
     70        return false;
    6871    }
    6972    /**
Note: See TracChangeset for help on using the changeset viewer.