Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 22, 2006, 2:52:28 PM (18 years ago)
Author:
bensch
Message:

new_class_id: CDengine adapted

File:
1 edited

Legend:

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

    r9406 r9687  
    2020#include "debug.h"
    2121
    22 #include "class_list.h"
    23 
    2422#include "model.h"
    2523#include "world_entity.h"
     
    3634
    3735
    38 
     36NewObjectListDefinition(CDEngine);
    3937/**
    40  * standard constructor
     38 * @brief standard constructor
    4139 */
    4240CDEngine::CDEngine ()
    4341{
    44   this->setClassID(CL_CD_ENGINE, "CDEngine");
     42  this->registerObject(this, CDEngine::_objectList);
    4543
    4644  this->bAbordOnFirstCollision = false;
     
    103101void CDEngine::checkCollisionGround(std::list<WorldEntity*>& list1)
    104102{
    105 
    106   std::list<BaseObject*>::const_iterator bspIterator;
    107103  std::list<WorldEntity*>::iterator entityIterator;
    108   const std::list<BaseObject*>* bspList = ClassList::getList(CL_BSP_ENTITY);
    109   if( bspList == NULL)
    110     return;
    111 
    112104  // for all bsp managers check all entities
    113   for( bspIterator = bspList->begin(); bspIterator != bspList->end(); bspIterator++) {
     105  for( NewObjectList<BspEntity>::const_iterator bspIterator = BspEntity::objectList().begin();
     106       bspIterator != BspEntity::objectList().end();
     107       bspIterator++) {
    114108      for(entityIterator = list1.begin(); entityIterator != list1.end(); entityIterator++)
    115109      {
Note: See TracChangeset for help on using the changeset viewer.