Changeset 4165 in orxonox.OLD for orxonox/branches/heightMap/src/story_entities
- Timestamp:
- May 11, 2005, 2:23:54 PM (20 years ago)
- Location:
- orxonox/branches/heightMap/src/story_entities
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/branches/heightMap/src/story_entities/world.cc
r4122 r4165 197 197 cn->reset(); 198 198 199 ResourceManager::getInstance()->debug();200 ResourceManager::getInstance()->unloadAllByPriority(RP_LEVEL);201 ResourceManager::getInstance()->debug();202 203 199 delete WorldInterface::getInstance(); 204 200 … … 209 205 TextEngine::getInstance()->flush(); 210 206 211 AnimationPlayer::getInstance()->debug();212 207 delete AnimationPlayer::getInstance(); // this should be at the end of the unloading sequence. 213 208 //delete garbagecollecor 214 209 //delete animator 215 210 216 211 ResourceManager::getInstance()->unloadAllByPriority(RP_LEVEL); 217 212 } 218 213 … … 844 839 this->glmis = new GLMenuImageScreen(); 845 840 this->glmis->init(); 846 glmis->setBackgroundImage("pictures/load_screen.jpg");847 841 this->glmis->setMaximum(8); 848 842 // this->glmis->draw(); … … 1118 1112 1119 1113 /* function to let all entities tick (iterate through list) */ 1120 float seconds =this->dt / 1000.0;1121 this->gameTime += seconds;1114 this->dtS = (float)this->dt / 1000.0; 1115 this->gameTime += this->dtS; 1122 1116 //entity = entities->enumerate(); 1123 1117 tIterator<WorldEntity>* iterator = this->entities->getIterator(); … … 1125 1119 while( entity != NULL) 1126 1120 { 1127 entity->tick ( seconds);1121 entity->tick (this->dtS); 1128 1122 entity = iterator->nextElement(); 1129 1123 } … … 1133 1127 this->trackManager->tick(this->dt); 1134 1128 this->localCamera->tick(this->dt); 1135 this->garbageCollector->tick( seconds);1136 1137 AnimationPlayer::getInstance()->tick( seconds);1129 this->garbageCollector->tick(this->dtS); 1130 1131 AnimationPlayer::getInstance()->tick(this->dtS); 1138 1132 } 1139 1133 this->lastFrame = currentFrame; … … 1150 1144 { 1151 1145 this->garbageCollector->update(); 1152 this->nullParent->update ( dt);1146 this->nullParent->update (this->dtS); 1153 1147 } 1154 1148 -
orxonox/branches/heightMap/src/story_entities/world.h
r4122 r4165 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.