Changeset 871 for code/trunk/src/orxonox/tools
- Timestamp:
- Mar 9, 2008, 4:44:36 PM (17 years ago)
- Location:
- code/trunk/src/orxonox/tools
- Files:
-
- 2 edited
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/tools/BillboardSet.h
r790 r871 7 7 8 8 #include "../OrxonoxPrereqs.h" 9 10 #include "../core/CoreIncludes.h"11 9 #include "util/Math.h" 12 10 -
code/trunk/src/orxonox/tools/Timer.h
r790 r871 59 59 60 60 #include <OgreFrameListener.h> 61 62 61 #include "../OrxonoxPrereqs.h" 63 64 #include "../core/CoreIncludes.h"65 62 66 63 namespace orxonox … … 72 69 73 70 public: 74 /** @brief Constructor: Sets the default-values. */ 75 TimerBase() 76 { 77 RegisterRootObject(TimerBase); 78 79 this->interval_ = 0; 80 this->bLoop_ = false; 81 this->bActive_ = false; 82 83 this->time_ = 0; 84 } 71 TimerBase(); 85 72 86 73 virtual void run() const = 0; … … 94 81 /** @brief Unpauses the Timer - continues with the given state. */ 95 82 inline void unpauseTimer() { this->bActive_ = true; } 96 /** @ returns true if the Timer is active (= not stoped, not paused).*/83 /** @brief Returns true if the Timer is active (= not stoped, not paused). @return True = Time is active */ 97 84 inline bool isActive() const { return this->bActive_; } 98 85 … … 104 91 float time_; //!< Internal variable, counting the time till the next function-call 105 92 }; 106 ExportAbstractClass(TimerBase, Orxonox);107 93 108 94 //! The Timer is a callback-object, calling a given function after a given time-interval. … … 158 144 T* object_; 159 145 }; 160 ExportAbstractClass(Timer<BaseObject>, Orxonox);161 146 162 147 //! The TimerFrameListener manages all Timers in the game.
Note: See TracChangeset
for help on using the changeset viewer.