Changeset 7208 for code/trunk/src/modules/pickup/Pickup.h
- Timestamp:
- Aug 24, 2010, 9:49:54 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/modules/pickup/Pickup.h
r7163 r7208 133 133 virtual bool createSpawner(void); //!< Facilitates the creation of a PickupSpawner upon dropping of the Pickupable. 134 134 135 bool startPickupTimer(float durationTime); //!< Starts the pickup duration timer.136 /**137 @brief Get your Timer.138 @return Returns a pointer to the Timer.139 */140 inline Timer* getTimer(void)141 { return &this->durationTimer_; }142 143 /**144 @brief The callback method for the Timer.145 Can be overloaded to implement desired functionality.146 */147 virtual void pickupTimerCallback(void) {}148 149 135 /** 150 136 @brief Set the activation type of the pickup. … … 166 152 void initialize(void); //!< Initializes the member variables. 167 153 168 //TODO: Problems, when there are more Timers needed? Solutions?169 Timer durationTimer_; //!< Timer at the disposal of each Class implementing Pickup.170 171 154 pickupActivationType::Value activationType_; //!< The activation type of the Pickup. 172 155 pickupDurationType::Value durationType_; //!< The duration type of the pickup.
Note: See TracChangeset
for help on using the changeset viewer.