Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8218 in orxonox.OLD for branches/bsp_model/src/lib


Ignore:
Timestamp:
Jun 7, 2006, 10:07:54 PM (19 years ago)
Author:
patrick
Message:

bsp: changed the BSPEntity name to BspEntity for more consistency, using new interface

Location:
branches/bsp_model/src/lib
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/bsp_model/src/lib/collision_detection/cd_engine.cc

    r8217 r8218  
    109109  for( bspIterator = bspList->begin(); bspIterator != bspList->end(); bspIterator++) {
    110110      for(entityIterator = list1.begin(); entityIterator != list1.end(); entityIterator++)
    111         (static_cast<BspEntity*>(*bspIterator)->getBspManager())->checkCollision(*entityIterator);
     111        (dynamic_cast<BspEntity*>(*bspIterator)->getBspManager())->checkCollision(*entityIterator);
    112112  }
    113113}
  • branches/bsp_model/src/lib/graphics/importer/bsp_manager.cc

    r8217 r8218  
    918918   if(collision)
    919919     worldEntity->registerCollision(worldEntity, Vector(this->collPlane->x, this->collPlane->y, this->collPlane->z), out);
    920 
    921 }
     920}
     921
    922922
    923923void  BspManager::checkCollision(BspTreeNode* node, Vector* cam)
  • branches/bsp_model/src/lib/graphics/importer/bsp_manager.h

    r8217 r8218  
    6464
    6565
    66   void checkCollision(WorldEntity* worldEntity); /*!< WorldEntities use this function to check wheter they collided with the BSPEntity.
     66  void checkCollision(WorldEntity* worldEntity); /*!< WorldEntities use this function to check wheter they collided with the BspEntity.
    6767                                                      If a collision has been detected, the collides-function of worldEntity will be called.*/
    6868
Note: See TracChangeset for help on using the changeset viewer.