Changeset 9869 in orxonox.OLD for trunk/src/lib/collision_detection/cd_engine.cc
- Timestamp:
- Oct 3, 2006, 12:19:30 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/collision_detection/cd_engine.cc
r9406 r9869 20 20 #include "debug.h" 21 21 22 #include "class_list.h"23 24 22 #include "model.h" 25 23 #include "world_entity.h" … … 36 34 37 35 38 36 ObjectListDefinition(CDEngine); 39 37 /** 40 * standard constructor38 * @brief standard constructor 41 39 */ 42 40 CDEngine::CDEngine () 43 41 { 44 this-> setClassID(CL_CD_ENGINE, "CDEngine");42 this->registerObject(this, CDEngine::_objectList); 45 43 46 44 this->bAbordOnFirstCollision = false; … … 103 101 void CDEngine::checkCollisionGround(std::list<WorldEntity*>& list1) 104 102 { 105 106 std::list<BaseObject*>::const_iterator bspIterator;107 103 std::list<WorldEntity*>::iterator entityIterator; 108 const std::list<BaseObject*>* bspList = ClassList::getList(CL_BSP_ENTITY);109 if( bspList == NULL)110 return;111 112 104 // for all bsp managers check all entities 113 for( bspIterator = bspList->begin(); bspIterator != bspList->end(); bspIterator++) { 105 for( ObjectList<BspEntity>::const_iterator bspIterator = BspEntity::objectList().begin(); 106 bspIterator != BspEntity::objectList().end(); 107 bspIterator++) { 114 108 for(entityIterator = list1.begin(); entityIterator != list1.end(); entityIterator++) 115 109 {
Note: See TracChangeset
for help on using the changeset viewer.