Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4918 in orxonox.OLD for orxonox/trunk/src/story_entities/world.cc


Ignore:
Timestamp:
Jul 21, 2005, 12:37:46 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: the CDEngine now knows the terrain

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/story_entities/world.cc

    r4917 r4918  
    276276
    277277  GraphicsEngine::getInstance()->displayFPS(true);
     278
     279  CDEngine::getInstance()->setEntityList( this->entities);
    278280}
    279281
     
    377379          if( element->Value() != NULL && !strcmp( element->Value(), "Player")) localPlayer = (Player*) created;
    378380          if( element->Value() != NULL && !strcmp( element->Value(), "SkyBox")) sky = (SkyBox*) created;
    379           if( element->Value() != NULL && !strcmp( element->Value(), "Terrain")) terrain = (Terrain*) created;
     381          if( element->Value() != NULL && !strcmp( element->Value(), "Terrain"))
     382          {
     383            terrain = (Terrain*) created;
     384            CDEngine::getInstance()->setTerrain(terrain);
     385          }
    380386          element = element->NextSiblingElement();
    381387          glmis->step(); //! @todo temporary
     
    949955void World::collide()
    950956{
    951 
     957  CDEngine::getInstance()->checkCollisions();
    952958}
    953959
Note: See TracChangeset for help on using the changeset viewer.