Changeset 6482 for code/branches/tutorial/src/orxonox/pickup/BaseItem.h
- Timestamp:
- Mar 7, 2010, 10:11:31 PM (15 years ago)
- Location:
- code/branches/tutorial
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/tutorial
- Property svn:mergeinfo changed
/code/branches/tutorial (added) merged: 5765-5766,5786-5787,5793,5833-5835,5840
- Property svn:mergeinfo changed
-
code/branches/tutorial/src/orxonox/pickup/BaseItem.h
r5781 r6482 44 44 { 45 45 /** 46 47 46 @brief 47 Base class for all items/pickups. 48 48 49 50 51 49 Provides common methods to be used in derived classes. 50 @author 51 Daniel 'Huty' Haggenmueller 52 52 */ 53 53 class _OrxonoxExport BaseItem : public BaseObject … … 61 61 62 62 /** 63 64 63 @brief Checks how many instances of this item can be carried at a time. 64 @return How many of this item can be carried. 65 65 */ 66 66 virtual int getMaxCarryAmount() const … … 70 70 bool removeFrom(Pawn* pawn); //!< Removes the item from a pawn. 71 71 /** 72 73 72 @brief 73 Method invoked when the item gets picked up. 74 74 75 76 75 Has to be overridden for an item to work, 76 should contain a call to addTo(). 77 77 78 79 78 @param pawn Pawn who picks up the item. 79 @return Returns whether the pawn was able to pick up the item. 80 80 */ 81 81 virtual bool pickedUp(Pawn* pawn)
Note: See TracChangeset
for help on using the changeset viewer.