Changeset 7940 in orxonox.OLD for branches/cr/src/lib/collision_reaction/cr_engine.cc
- Timestamp:
- May 28, 2006, 11:05:21 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cr/src/lib/collision_reaction/cr_engine.cc
r7937 r7940 16 16 #define DEBUG_SPECIAL_MODULE DEBUG_MODULE_COLLISION_REACTION 17 17 18 19 20 #include "collision.h" 21 #include "cr_defs.h" 22 18 23 #include "cr_engine.h" 19 24 … … 30 35 this->setName("CREngine"); 31 36 37 this->init(); 32 38 } 33 39 … … 45 51 } 46 52 53 54 void CREngine::init() 55 { 56 // create a list of Collision events (precaching) 57 Collision* collisions = new Collision[CR_MAX_COLLISIONS]; 58 for( int i = 0; i < CR_MAX_COLLISIONS; i++) 59 this->cachedCollisions.push_back(collisions[i]); 60 } 61 62 63 void CREngine::reset() 64 {} 47 65 48 66 … … 74 92 75 93 } 94
Note: See TracChangeset
for help on using the changeset viewer.