Changeset 1674 for code/branches/gui/src/core/GameState.h
- Timestamp:
- Aug 28, 2008, 8:30:25 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/gui/src/core/GameState.h
r1672 r1674 42 42 #include <map> 43 43 #include "util/Integers.h" 44 #include "Clock.h" 44 45 45 46 namespace orxonox … … 100 101 virtual void enter() = 0; 101 102 virtual void leave() = 0; 102 virtual void ticked( float dt, uint64_ttime) = 0;103 virtual void ticked(const Clock& time) = 0; 103 104 104 105 GameState* getActiveChild() { return this->activeChild_; } 105 106 106 void tickChild( float dt, uint64_t time) { if (this->getActiveChild()) this->getActiveChild()->tick(dt,time); }107 void tickChild(const Clock& time) { if (this->getActiveChild()) this->getActiveChild()->tick(time); } 107 108 108 109 private: … … 113 114 void grandchildRemoved(GameState* grandchild); 114 115 115 void tick( float dt, uint64_ttime);116 void tick(const Clock& time); 116 117 void activate(); 117 118 void deactivate();
Note: See TracChangeset
for help on using the changeset viewer.