Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 11, 2005, 2:23:54 PM (20 years ago)
Author:
bensch
Message:

orxonox/branches/heightMap: merged trunk back to the heightMap branche
merged with command:
svn merge trunk/ branches/heightMap/ -r 4122:HEAD

Location:
orxonox/branches/heightMap/src/story_entities
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • orxonox/branches/heightMap/src/story_entities/world.cc

    r4122 r4165  
    197197  cn->reset();
    198198
    199   ResourceManager::getInstance()->debug();
    200   ResourceManager::getInstance()->unloadAllByPriority(RP_LEVEL);
    201   ResourceManager::getInstance()->debug();
    202 
    203199  delete WorldInterface::getInstance();
    204200
     
    209205  TextEngine::getInstance()->flush();
    210206
    211   AnimationPlayer::getInstance()->debug();
    212207  delete AnimationPlayer::getInstance(); // this should be at the end of the unloading sequence.
    213208  //delete garbagecollecor
    214209  //delete animator
    215210
    216 
     211  ResourceManager::getInstance()->unloadAllByPriority(RP_LEVEL);
    217212}
    218213
     
    844839  this->glmis = new GLMenuImageScreen();
    845840  this->glmis->init();
    846   glmis->setBackgroundImage("pictures/load_screen.jpg");
    847841  this->glmis->setMaximum(8);
    848842  //  this->glmis->draw();
     
    11181112     
    11191113      /* 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;
    11221116      //entity = entities->enumerate();
    11231117      tIterator<WorldEntity>* iterator = this->entities->getIterator();
     
    11251119      while( entity != NULL)
    11261120        {
    1127           entity->tick (seconds);
     1121          entity->tick (this->dtS);
    11281122          entity = iterator->nextElement();
    11291123        }
     
    11331127      this->trackManager->tick(this->dt);
    11341128      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);
    11381132    }
    11391133  this->lastFrame = currentFrame;
     
    11501144{
    11511145  this->garbageCollector->update();
    1152   this->nullParent->update (dt);
     1146  this->nullParent->update (this->dtS);
    11531147}
    11541148
  • orxonox/branches/heightMap/src/story_entities/world.h

    r4122 r4165  
    9494  Uint32 lastFrame;                   //!< last time of frame
    9595  Uint32 dt;                          //!< time needed to calculate this frame
     96  float dtS;                          //!< The time needed for caluculations in seconds
    9697  double gameTime;                    //!< this is where the game time is saved
    9798  bool bQuitOrxonox;                  //!< quit this application
Note: See TracChangeset for help on using the changeset viewer.