Changeset 10314 in orxonox.OLD for trunk/src/story_entities
- Timestamp:
- Jan 24, 2007, 12:45:39 AM (18 years ago)
- Location:
- trunk/src/story_entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/story_entities/game_world.cc
r10013 r10314 11 11 ### File Specific: 12 12 main-programmer: Patrick Boenzli 13 main-programmer: Benjamin Grauer 13 14 co-programmer: Christian Meyer 14 co-programmer: Benjamin Grauer 15 15 16 */ 16 17 … … 73 74 SHELL_COMMAND(togglePNodeVisibility, GameWorld, togglePNodeVisibility); 74 75 SHELL_COMMAND(showBVLevel, GameWorld, toggleBVVisibility); 76 SHELL_COMMAND(showMountPoints, GameWorld, toggleMPVisibility); 75 77 76 78 … … 88 90 this->showBV = false; 89 91 this->showBVLevel = 3; 92 this->showMPV = false; 90 93 91 94 this->dataXML = NULL; … … 541 544 ObjectManager::EntityList::const_iterator entity; 542 545 for (entity = drawList.begin(); entity != drawList.end(); entity++) 546 { 543 547 if ((*entity)->isVisible()) 544 548 (*entity)->draw(); 549 550 if( unlikely( this->showMPV)) 551 (*entity)->debugDrawMountPoints(); 552 } 545 553 } 546 554 … … 666 674 } 667 675 676 668 677 if( unlikely(this->showPNodes)) 669 678 PNode::getNullParent()->debugDraw(0); -
trunk/src/story_entities/game_world.h
r9869 r10314 62 62 void togglePNodeVisibility(); 63 63 void toggleBVVisibility(int level); 64 inline void toggleMPVisibility() { this->showMPV = !this->showMPV; } 64 65 65 66 inline void setSky(WorldEntity* sky) { this->dataTank->sky = sky; } … … 99 100 bool showBV; //!< if the Bounding Volumes should be visible. 100 101 int showBVLevel; //!< the depth level of the displayed bounding volumes 102 bool showMPV; //!< true if the mounting points should be drawn for debug purposes 101 103 102 104 /* world timing */ -
trunk/src/story_entities/movie_loader.cc
r10114 r10314 63 63 64 64 65 ErrorMessage MovieLoader::init() { }65 ErrorMessage MovieLoader::init() { return ErrorMessage();} 66 66 67 67 68 ErrorMessage MovieLoader::loadData() { }68 ErrorMessage MovieLoader::loadData() { return ErrorMessage();} 69 69 70 70 … … 72 72 { 73 73 this->unsubscribeEvents(ES_GAME); 74 75 return ErrorMessage(); 74 76 } 75 77 … … 82 84 this->bRunning = true; 83 85 this->run(); 86 87 return true; 84 88 } 85 89 … … 89 93 90 94 this->bRunning = false; 95 96 return true; 91 97 } 92 98 93 bool MovieLoader::pause() { }94 bool MovieLoader::resume() { }99 bool MovieLoader::pause() { return false; } 100 bool MovieLoader::resume() { return false; } 95 101 96 102 void MovieLoader::run()
Note: See TracChangeset
for help on using the changeset viewer.