Changeset 7945 in orxonox.OLD for branches/cr/src/world_entities/world_entity.cc
- Timestamp:
- May 29, 2006, 12:48:21 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cr/src/world_entities/world_entity.cc
r7944 r7945 33 33 34 34 #include "collision_handle.h" 35 #include "collision.h" 35 36 36 37 #include <stdarg.h> … … 68 69 this->objectListNumber = OM_INIT; 69 70 this->objectListIterator = NULL; 71 72 // reset all collision handles to NULL == unsubscribed state 73 for(int i = 0; i < CREngine::CR_NUMBER; ++i) 74 this->collisionHandles[i] = NULL; 70 75 71 76 this->toList(OM_NULL); … … 242 247 void WorldEntity::subscribeReaction(CREngine::CRType type, int nrOfTargets, long target...) 243 248 { 249 if( this->collisionHandles[type] != NULL) { 250 PRINTF(2)("Registering for a CollisionReaction already subscribed to! Skipping\n"); 251 return; 252 } 244 253 245 254 this->collisionHandles[type] = CREngine::getInstance()->subscribeReaction(this, type); … … 257 266 * @param collisionEvent the event 258 267 */ 259 void WorldEntity::registerCollision(WorldEntity* entityA, WorldEntity* entityB, BouningVolume* bvA, BoundingVolume* bvB)268 bool WorldEntity::registerCollision(WorldEntity* entityA, WorldEntity* entityB, BoundingVolume* bvA, BoundingVolume* bvB) 260 269 { 261 270 // create a collision event
Note: See TracChangeset
for help on using the changeset viewer.