Changeset 4160 in orxonox.OLD for orxonox/branches/md2_loader/src/story_entities
- Timestamp:
- May 11, 2005, 12:49:49 AM (20 years ago)
- Location:
- orxonox/branches/md2_loader/src/story_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/md2_loader/src/story_entities/world.cc
r4153 r4160 1121 1121 1122 1122 /* function to let all entities tick (iterate through list) */ 1123 float seconds =this->dt / 1000.0;1124 this->gameTime += seconds;1123 this->dtS = (float)this->dt / 1000.0; 1124 this->gameTime += this->dtS; 1125 1125 //entity = entities->enumerate(); 1126 1126 tIterator<WorldEntity>* iterator = this->entities->getIterator(); … … 1128 1128 while( entity != NULL) 1129 1129 { 1130 entity->tick ( seconds);1130 entity->tick (this->dtS); 1131 1131 entity = iterator->nextElement(); 1132 1132 } … … 1136 1136 this->trackManager->tick(this->dt); 1137 1137 this->localCamera->tick(this->dt); 1138 this->garbageCollector->tick( seconds);1138 this->garbageCollector->tick(this->dtS); 1139 1139 1140 1141 1142 1143 1144 1145 GraphicsEngine::getInstance()->tick( seconds);1146 AnimationPlayer::getInstance()->tick(seconds);1140 /* actualy the Graphics Engine should tick the world not the other way around... 1141 but since we like the things not too complicated we got it this way around 1142 until there is need or time to do it the other way around. 1143 \todo: GraphicsEngine ticks world: separation of processes and data... 1144 */ 1145 GraphicsEngine::getInstance()->tick(this->dtS); 1146 AnimationPlayer::getInstance()->tick(this->dtS); 1147 1147 } 1148 1148 this->lastFrame = currentFrame; … … 1159 1159 { 1160 1160 this->garbageCollector->update(); 1161 this->nullParent->update ( dt);1161 this->nullParent->update (this->dtS); 1162 1162 } 1163 1163 -
orxonox/branches/md2_loader/src/story_entities/world.h
r4152 r4160 95 95 Uint32 lastFrame; //!< last time of frame 96 96 Uint32 dt; //!< time needed to calculate this frame 97 float dtS; //!< The time needed for caluculations in seconds 97 98 double gameTime; //!< this is where the game time is saved 98 99 bool bQuitOrxonox; //!< quit this application
Note: See TracChangeset
for help on using the changeset viewer.