Changeset 7494 for code/trunk/src/modules/pickup/Pickup.cc
- Timestamp:
- Sep 28, 2010, 5:31:59 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/pickup/Pickup.cc
r7401 r7494 36 36 #include "core/CoreIncludes.h" 37 37 #include "util/StringUtils.h" 38 38 39 #include "pickup/PickupIdentifier.h" 40 39 41 #include "DroppedPickup.h" 40 41 #include "tools/Timer.h"42 42 43 43 namespace orxonox … … 51 51 CreateUnloadableFactory(Pickup); 52 52 53 /** 54 @brief 55 Constructor. Registers and initializes the object. 56 @param creator 57 The objects creator. 58 */ 53 59 Pickup::Pickup(BaseObject* creator) : BaseObject(creator) 54 60 { … … 58 64 } 59 65 66 /** 67 @brief 68 Destructor. 69 */ 60 70 Pickup::~Pickup() 61 71 { … … 158 168 else 159 169 { 160 COUT(1) << "Invalid activationType in pickup." << std::endl;170 COUT(1) << "Invalid activationType '" << type << "' in pickup." << std::endl; 161 171 } 162 172 } … … 180 190 else 181 191 { 182 COUT(1) << "Invalid durationType in pickup." << std::endl;192 COUT(1) << "Invalid durationType '" << type << "' in pickup." << std::endl; 183 193 } 184 194 } … … 193 203 SUPER(Pickup, changedPickedUp); 194 204 195 // !Sets the Pickup to used if the Pickup has activation type 'immediate' and gets picked up.205 // Sets the Pickup to used if the Pickup has activation type 'immediate' and gets picked up. 196 206 if(this->isPickedUp() && this->isImmediate()) 197 {198 207 this->setUsed(true); 199 } 200 } 201 202 /** 203 @brief 204 Creates a duplicate of the Pickup. 205 @return 206 Returns the clone of this pickup as a pointer to a Pickupable. 208 } 209 210 /** 211 @brief 212 Creates a duplicate of the OrxonoxClass. 213 @param item 214 A reference to the pointer of the item that we're duplicating. 207 215 */ 208 216 void Pickup::clone(OrxonoxClass*& item)
Note: See TracChangeset
for help on using the changeset viewer.