Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7370 in orxonox.OLD for trunk/src/lib


Ignore:
Timestamp:
Apr 26, 2006, 1:31:01 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: drawLists/tickLists are used, and made some TiXmlElement to const TiXmlElement, also fixed some bugs in the loadWorldEntities-functions from Gameworld and SipleGameMenu

Location:
trunk/src/lib
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/collision_detection/cd_engine.cc

    r6316 r7370  
    106106//}
    107107
    108 void CDEngine::checkCollisions(std::list<WorldEntity*>& list1, std::list<WorldEntity*>& list2)
     108void CDEngine::checkCollisions(ObjectManager::EntityList& list1, ObjectManager::EntityList& list2)
    109109{
    110110  BVTree* tree;
    111   std::list<WorldEntity*>::iterator entity1, entity2, pre1, pre2;
     111  ObjectManager::EntityList::iterator entity1, entity2, pre1, pre2;
    112112  PRINTF(3)("checking for collisions\n");
    113113
     
    195195
    196196
    197 void CDEngine::drawBV(const std::list<WorldEntity*>& drawList ) const
    198 {
    199   std::list<WorldEntity*>::const_iterator entity;
     197void CDEngine::drawBV(const ObjectManager::EntityList& drawList ) const
     198{
     199  ObjectManager::EntityList::const_iterator entity;
    200200  for (entity = drawList.begin(); entity != drawList.end(); entity++)
    201201    if ((*entity)->isVisible())
  • trunk/src/lib/data/data_tank.h

    r6424 r7370  
    2525    virtual ErrorMessage init() {}
    2626    /** loads the data into the DataTank @param root is the xml root parameter for for loadParams() connection */
    27     virtual ErrorMessage loadData(TiXmlElement* root = NULL) {}
     27    virtual ErrorMessage loadData(const TiXmlElement* root = NULL) {}
    2828    /** unloads the data again from the DataTank */
    2929    virtual ErrorMessage unloadData() {}
  • trunk/src/lib/graphics/graphics_engine.cc

    r7319 r7370  
    584584      dynamic_cast<GraphicsEffect*>(*it)->draw();
    585585  }
    586 }
    587 
    588 void GraphicsEngine::draw(const std::list<WorldEntity*>& drawList ) const
    589 {
    590   std::list<WorldEntity*>::const_iterator entity;
    591   for (entity = drawList.begin(); entity != drawList.end(); entity++)
    592     if ((*entity)->isVisible())
    593       (*entity)->draw();
    594586}
    595587
  • trunk/src/lib/graphics/graphics_engine.h

    r7256 r7370  
    6969    void tick(float dt);
    7070    void draw() const;
    71     void draw(const std::list<WorldEntity*>& drawList) const;
    7271    void displayFPS(bool display);
    7372
Note: See TracChangeset for help on using the changeset viewer.