Changeset 7945 in orxonox.OLD for branches/cr/src/lib/collision_reaction/cr_engine.cc
- Timestamp:
- May 29, 2006, 12:48:21 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cr/src/lib/collision_reaction/cr_engine.cc
r7944 r7945 19 19 20 20 #include "collision.h" 21 #include "collision_handle.h" 21 22 #include "cr_defs.h" 22 23 … … 51 52 } 52 53 53 54 /** 55 * inits the CREngine to a working state 56 */ 54 57 void CREngine::init() 55 58 { … … 62 65 63 66 void CREngine::reset() 64 {} 67 { 68 // first clear all CollisionHandles 69 std::vector<CollisionHandle*>::iterator it; 70 for( it = this->collisionHandles.begin(); it != this->collisionHandles.end(); it++) 71 delete *it; 72 this->collisionHandles.clear(); 73 } 65 74 66 75 … … 72 81 CollisionHandle* CREngine::subscribeReaction(WorldEntity* owner, CRType type) 73 82 { 83 CollisionHandle* ch = new CollisionHandle(owner, type); 84 this->collisionHandles.push_back(ch); 85 } 74 86 75 }76 87 77 88 bool CREngine::unsubscribeReaction(WorldEntity* worldEntity)
Note: See TracChangeset
for help on using the changeset viewer.