Changeset 7391 in orxonox.OLD for trunk/src/story_entities/game_world.cc
- Timestamp:
- Apr 27, 2006, 12:52:35 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/game_world.cc
r7374 r7391 83 83 84 84 this->dataXML = NULL; 85 this->gameRules = NULL; 85 86 } 86 87 … … 274 275 /* update the state */ 275 276 this->update (); 277 /* check the game rules */ 278 this->checkGameRules(); 276 279 /* draw everything */ 277 280 this->display (); … … 417 420 } 418 421 422 423 /** 424 * check the game rules: winning conditions, etc. 425 * 426 */ 427 void GameWorld::checkGameRules() 428 { 429 if( this->gameRules) 430 this->gameRules->tick(this->dtS); 431 } 432 433 419 434 /** 420 435 * render the current frame … … 474 489 engine->draw(); 475 490 476 477 491 // draw the game ruls 478 492 if( likely(this->dataTank->gameRule != NULL))
Note: See TracChangeset
for help on using the changeset viewer.