Changeset 4145 in orxonox.OLD for orxonox/trunk/src/story_entities
- Timestamp:
- May 10, 2005, 4:54:00 PM (20 years ago)
- Location:
- orxonox/trunk/src/story_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/story_entities/world.cc
r4136 r4145 1112 1112 1113 1113 /* function to let all entities tick (iterate through list) */ 1114 float seconds =this->dt / 1000.0;1115 this->gameTime += seconds;1114 this->dtS = (float)this->dt / 1000.0; 1115 this->gameTime += this->dtS; 1116 1116 //entity = entities->enumerate(); 1117 1117 tIterator<WorldEntity>* iterator = this->entities->getIterator(); … … 1119 1119 while( entity != NULL) 1120 1120 { 1121 entity->tick ( seconds);1121 entity->tick (this->dtS); 1122 1122 entity = iterator->nextElement(); 1123 1123 } … … 1127 1127 this->trackManager->tick(this->dt); 1128 1128 this->localCamera->tick(this->dt); 1129 this->garbageCollector->tick( seconds);1130 1131 AnimationPlayer::getInstance()->tick( seconds);1129 this->garbageCollector->tick(this->dtS); 1130 1131 AnimationPlayer::getInstance()->tick(this->dtS); 1132 1132 } 1133 1133 this->lastFrame = currentFrame; … … 1144 1144 { 1145 1145 this->garbageCollector->update(); 1146 this->nullParent->update ( dt);1146 this->nullParent->update (this->dtS); 1147 1147 } 1148 1148 -
orxonox/trunk/src/story_entities/world.h
r4015 r4145 94 94 Uint32 lastFrame; //!< last time of frame 95 95 Uint32 dt; //!< time needed to calculate this frame 96 float dtS; //!< The time needed for caluculations in seconds 96 97 double gameTime; //!< this is where the game time is saved 97 98 bool bQuitOrxonox; //!< quit this application
Note: See TracChangeset
for help on using the changeset viewer.