Changeset 1790 for code/trunk/src/orxonox
- Timestamp:
- Sep 15, 2008, 11:38:46 PM (16 years ago)
- Location:
- code/trunk/src/orxonox
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/gamestates/GSDedicated.cc
r1755 r1790 102 102 void GSDedicated::ticked(const Clock& time) 103 103 { 104 // Call those objects that need the real time105 for (ObjectList<TickableReal>::iterator it = ObjectList<TickableReal>::begin(); it; ++it)106 it->tick(time.getDeltaTime());107 104 // Call the scene objects 108 105 for (ObjectList<Tickable>::iterator it = ObjectList<Tickable>::begin(); it; ++it) -
code/trunk/src/orxonox/gamestates/GSLevel.cc
r1755 r1790 113 113 void GSLevel::ticked(const Clock& time) 114 114 { 115 // Call those objects that need the real time116 for (ObjectList<TickableReal>::iterator it = ObjectList<TickableReal>::begin(); it; ++it)117 it->tick(time.getDeltaTime());118 115 // Call the scene objects 119 116 for (ObjectList<Tickable>::iterator it = ObjectList<Tickable>::begin(); it; ++it) -
code/trunk/src/orxonox/objects/Tickable.cc
r1535 r1790 41 41 RegisterRootObject(Tickable); 42 42 } 43 44 /**45 @brief Constructor: Registers the object in the TickableReal-list46 */47 TickableReal::TickableReal()48 {49 RegisterRootObject(TickableReal);50 }51 43 } -
code/trunk/src/orxonox/objects/Tickable.h
r1755 r1790 64 64 65 65 SUPER_FUNCTION(1, Tickable, tick, true); 66 67 //! The Tickable interface provides a tick(dt) function, that gets called every frame.68 class _OrxonoxExport TickableReal : virtual public OrxonoxClass69 {70 public:71 /**72 @brief Gets called every frame.73 @param dt The time since the last frame in seconds74 */75 virtual void tick(float dt) = 0;76 77 protected:78 TickableReal();79 };80 81 66 } 82 67
Note: See TracChangeset
for help on using the changeset viewer.