Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Apr 27, 2006, 12:52:35 AM (18 years ago)
Author:
patrick
Message:

orxonox: working on mission goals and mission manager

File:
1 edited

Legend:

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

    r7374 r7391  
    8383
    8484  this->dataXML = NULL;
     85  this->gameRules = NULL;
    8586}
    8687
     
    274275    /* update the state */
    275276    this->update ();
     277    /* check the game rules */
     278    this->checkGameRules();
    276279    /* draw everything */
    277280    this->display ();
     
    417420}
    418421
     422
     423/**
     424 *  check the game rules: winning conditions, etc.
     425 *
     426 */
     427void GameWorld::checkGameRules()
     428{
     429  if( this->gameRules)
     430    this->gameRules->tick(this->dtS);
     431}
     432
     433
    419434/**
    420435 *  render the current frame
     
    474489  engine->draw();
    475490
    476 
    477491  // draw the game ruls
    478492  if( likely(this->dataTank->gameRule != NULL))
Note: See TracChangeset for help on using the changeset viewer.