Changeset 916 for code/branches/input/src/orxonox/objects
- Timestamp:
- Mar 21, 2008, 3:50:44 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/input/src/orxonox/objects/Tickable.h
r900 r916 41 41 #define _Tickable_H__ 42 42 43 #include <OgreFrameListener.h>44 45 43 #include "../OrxonoxPrereqs.h" 46 44 #include "core/OrxonoxClass.h" … … 64 62 }; 65 63 66 #if 067 //! The TickFrameListener calls the tick(dt) function of all Tickables every frame.68 class _OrxonoxExport TickFrameListener : public Ogre::FrameListener69 {70 private:71 /** @brief Gets called before a frame gets rendered. */72 bool frameStarted(const Ogre::FrameEvent &evt)73 {74 // Iterate through all Tickables and call their tick(dt) function75 for (Iterator<Tickable> it = ObjectList<Tickable>::start(); it; )76 (it++)->tick(evt.timeSinceLastFrame);77 78 return FrameListener::frameStarted(evt);79 }80 };81 #endif82 64 } 83 65
Note: See TracChangeset
for help on using the changeset viewer.