Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8190 in orxonox.OLD for trunk/src/story_entities/game_world.cc


Ignore:
Timestamp:
Jun 7, 2006, 3:00:01 PM (18 years ago)
Author:
patrick
Message:

trunk: merged the cr branche to trunk

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/story_entities/game_world.cc

    r8037 r8190  
    136136  AnimationPlayer::getInstance();
    137137  PhysicsEngine::getInstance();
    138 
     138  CREngine::getInstance();
    139139}
    140140
     
    199199  delete AnimationPlayer::getInstance();
    200200  delete PhysicsEngine::getInstance();
     201  delete CREngine::getInstance();
    201202
    202203  State::setCurrentStoryEntity(NULL);
     
    278279    /* process time */
    279280    this->tick ();
    280     /* process collision */
    281     this->collide ();
     281    /* collision detection */
     282    this->collisionDetection ();
     283    /* collision reaction */
     284    this->collisionReaction ();
    282285    /* update the state */
    283286    this->update ();
     
    408411 * kicks the CDEngine to detect the collisions between the object groups in the world
    409412 */
    410 void GameWorld::collide()
     413void GameWorld::collisionDetection()
    411414{
    412415  CDEngine::getInstance()->checkCollisions(this->dataTank->objectManager->getObjectList(OM_GROUP_00),
     
    422425      this->dataTank->objectManager->getObjectList(OM_COMMON));
    423426
     427}
     428
     429
     430void GameWorld::collisionReaction()
     431{
     432  CREngine::getInstance()->handleCollisions();
    424433}
    425434
Note: See TracChangeset for help on using the changeset viewer.