Changeset 8168 in orxonox.OLD
- Timestamp:
- Jun 6, 2006, 1:49:45 AM (18 years ago)
- Location:
- branches/cr/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/cr/src/lib/collision_reaction/collision_handle.cc
r8167 r8168 122 122 else 123 123 c = this->collisionList.back(); 124 125 assert( c->getEntityA() != NULL);126 assert( c->getEntityB() != NULL);127 124 128 125 return c; -
branches/cr/src/lib/collision_reaction/cr_object_damage.cc
r8166 r8168 54 54 float damage; 55 55 56 assert(collision->getEntityA() != NULL);57 assert(collision->getEntityB() != NULL);58 59 56 PRINTF(0)("Dealing damage - Handling collision: %s vs %s\n", 60 57 collision->getEntityA()->getClassName(), … … 66 63 collision->getEntityA()->decreaseHealth(damage); 67 64 } 65 PRINTF(0)("Dealing damage - %f damage to %s \n", damage, collision->getEntityA()->getClassName()); 66 68 67 if( collision->isEntityBCollide()) { 69 68 damage = collision->getEntityA()->getHealthMax(); 70 69 collision->getEntityB()->decreaseHealth(damage); 71 70 } 71 PRINTF(0)("Dealing damage - %f damage to %s \n", damage, collision->getEntityB()->getClassName()); 72 72 73 73 collision->flushCollisionEvents(); -
branches/cr/src/world_entities/world_entity.cc
r8124 r8168 376 376 return false; 377 377 378 PRINTF(0)("Registering Collision: %s vs %s \n", entityA->getClassName(), entityB->getClassName());379 378 // create a collision event 380 379 CollisionEvent* c = CREngine::getInstance()->popCollisionEventObject();
Note: See TracChangeset
for help on using the changeset viewer.