Changeset 6705 for code/branches/ppspickups1/src/modules/pickup/Pickup.cc
- Timestamp:
- Apr 13, 2010, 12:09:10 AM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/ppspickups1/src/modules/pickup/Pickup.cc
r6643 r6705 236 236 /** 237 237 @brief 238 Starts the Pickup duration Timer. 238 Starts the pickup duration timer. 239 After the specified durationTime has expired the function pickupTimerCallback is called. 240 pickupTimerCallback can be overloaded and thus the desired functionality can be implemented. 241 @param durationTime 242 The duration after which the expires and the callback function is called. 243 @return 244 Returns true if the pickup duration timer was started successfully, false if not. 239 245 */ 240 246 bool Pickup::startPickupTimer(float durationTime) … … 245 251 return false; 246 252 } 247 if ( false) /* TODO: Check if Timer is already running */253 if (this->durationTimer_.isActive()) //!< Check if Timer is already running 248 254 { 249 255 COUT(1) << "Pickup durationTimer already in use." << std::endl; 250 256 return false; 251 257 } 252 this->durationTimer_.setTimer(durationTime, false, createExecutor(createFunctor(&Pickup:: PickupTimerCallBack, this)));258 this->durationTimer_.setTimer(durationTime, false, createExecutor(createFunctor(&Pickup::pickupTimerCallback, this))); 253 259 return true; 254 260 }
Note: See TracChangeset
for help on using the changeset viewer.