Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 7, 2006, 9:57:13 PM (18 years ago)
Author:
patrick
Message:

bsp: major restructure: going over bsp_entity for collision detection. adjusting interfaces

File:
1 edited

Legend:

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

    r8215 r8217  
    3232
    3333#include "bsp_manager.h"
     34#include "bsp_entity.h"
    3435
    3536using namespace std;
     
    101102  std::list<BaseObject*>::const_iterator bspIterator;
    102103  std::list<WorldEntity*>::iterator entityIterator;
    103   const std::list<BaseObject*>* bspList = ClassList::getList(CL_BSP_MODEL);
     104  const std::list<BaseObject*>* bspList = ClassList::getList(CL_BSP_ENTITY);
    104105  if( bspList == NULL)
    105106    return;
     
    108109  for( bspIterator = bspList->begin(); bspIterator != bspList->end(); bspIterator++) {
    109110      for(entityIterator = list1.begin(); entityIterator != list1.end(); entityIterator++)
    110         static_cast<BspManager*>(*bspIterator)->checkCollision(*entityIterator);
     111        (static_cast<BspEntity*>(*bspIterator)->getBspManager())->checkCollision(*entityIterator);
    111112  }
    112113}
Note: See TracChangeset for help on using the changeset viewer.