Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10314 in orxonox.OLD for trunk/src/story_entities


Ignore:
Timestamp:
Jan 24, 2007, 12:45:39 AM (18 years ago)
Author:
patrick
Message:

merged branche mount_point to trunk. this will add mount point abilities, bsp transparency fix and some other smaller stuff to this trunk

Location:
trunk/src/story_entities
Files:
3 edited

Legend:

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

    r10013 r10314  
    1111   ### File Specific:
    1212   main-programmer: Patrick Boenzli
     13   main-programmer: Benjamin Grauer
    1314   co-programmer: Christian Meyer
    14    co-programmer: Benjamin Grauer
     15
    1516*/
    1617
     
    7374SHELL_COMMAND(togglePNodeVisibility, GameWorld, togglePNodeVisibility);
    7475SHELL_COMMAND(showBVLevel, GameWorld, toggleBVVisibility);
     76SHELL_COMMAND(showMountPoints, GameWorld, toggleMPVisibility);
    7577
    7678
     
    8890  this->showBV = false;
    8991  this->showBVLevel = 3;
     92  this->showMPV = false;
    9093
    9194  this->dataXML = NULL;
     
    541544  ObjectManager::EntityList::const_iterator entity;
    542545  for (entity = drawList.begin(); entity != drawList.end(); entity++)
     546  {
    543547    if ((*entity)->isVisible())
    544548      (*entity)->draw();
     549
     550    if( unlikely( this->showMPV))
     551      (*entity)->debugDrawMountPoints();
     552  }
    545553}
    546554
     
    666674    }
    667675
     676
    668677    if( unlikely(this->showPNodes))
    669678      PNode::getNullParent()->debugDraw(0);
  • trunk/src/story_entities/game_world.h

    r9869 r10314  
    6262  void togglePNodeVisibility();
    6363  void toggleBVVisibility(int level);
     64  inline void toggleMPVisibility() { this->showMPV = !this->showMPV; }
    6465
    6566  inline void setSky(WorldEntity* sky) { this->dataTank->sky = sky; }
     
    99100  bool                showBV;                       //!< if the Bounding Volumes should be visible.
    100101  int                 showBVLevel;                  //!< the depth level of the displayed bounding volumes
     102  bool                showMPV;                      //!< true if the mounting points should be drawn for debug purposes
    101103
    102104  /* world timing */
  • trunk/src/story_entities/movie_loader.cc

    r10114 r10314  
    6363
    6464
    65 ErrorMessage MovieLoader::init() {}
     65ErrorMessage MovieLoader::init() {  return ErrorMessage();}
    6666
    6767
    68 ErrorMessage MovieLoader::loadData() {}
     68ErrorMessage MovieLoader::loadData() {  return ErrorMessage();}
    6969
    7070
     
    7272{
    7373  this->unsubscribeEvents(ES_GAME);
     74
     75  return ErrorMessage();
    7476}
    7577
     
    8284  this->bRunning = true;
    8385  this->run();
     86
     87  return true;
    8488}
    8589
     
    8993
    9094  this->bRunning = false;
     95
     96  return true;
    9197}
    9298
    93 bool MovieLoader::pause() { }
    94 bool MovieLoader::resume() { }
     99bool MovieLoader::pause() { return false; }
     100bool MovieLoader::resume() { return false; }
    95101
    96102void MovieLoader::run()
Note: See TracChangeset for help on using the changeset viewer.