Changeset 1629 for code/branches/input/src/orxonox/tools/Timer.h
- Timestamp:
- Jun 27, 2008, 8:07:29 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/input/src/orxonox/tools/Timer.h
r1535 r1629 78 78 79 79 void run() const; 80 void deleteExecutor(); 80 81 81 82 /** @brief Starts the Timer: Function-call after 'interval' seconds. */ … … 94 95 inline bool isActive() const 95 96 { return this->bActive_; } 97 /** @brief Returns the remaining time until the Timer calls the function. @return The remaining time */ 98 inline float getRemainingTime() const 99 { return this->time_; } 96 100 /** @brief Gives the Timer some extra time. @param time The amount of extra time in seconds */ 97 101 inline void addTime(float time) … … 149 153 void setTimer(float interval, bool bLoop, T* object, ExecutorMember<T>* executor) 150 154 { 155 this->deleteExecutor(); 156 151 157 this->interval_ = interval; 152 158 this->bLoop_ = bLoop; … … 185 191 void setTimer(float interval, bool bLoop, ExecutorStatic* executor) 186 192 { 193 this->deleteExecutor(); 194 187 195 this->interval_ = interval; 188 196 this->bLoop_ = bLoop;
Note: See TracChangeset
for help on using the changeset viewer.