Changeset 9371 in orxonox.OLD for branches/proxy/src/lib/collision_reaction
- Timestamp:
- Jul 20, 2006, 11:08:16 PM (18 years ago)
- Location:
- branches/proxy/src/lib/collision_reaction
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/proxy/src/lib/collision_reaction/collision_handle.cc
r9357 r9371 178 178 179 179 c->registerCollisionEvent(collisionEvent); 180 PRINTF(5)("Registering Collision Event: %s, %s\n", collisionEvent->getEntityA()->getClass Name(), collisionEvent->getEntityB()->getClassName());180 PRINTF(5)("Registering Collision Event: %s, %s\n", collisionEvent->getEntityA()->getClassCName(), collisionEvent->getEntityB()->getClassCName()); 181 181 } 182 182 … … 254 254 if( collisionEvent->getEntityA() == this->owner) { 255 255 if( collisionEvent->getEntityB()->isA((ClassID)(*it))) { 256 PRINTF(5)("I am: %s colliding with: %s is a %i filter ok\n", owner->getClass Name(),257 collisionEvent->getEntityB()->getClass Name(), *it);256 PRINTF(5)("I am: %s colliding with: %s is a %i filter ok\n", owner->getClassCName(), 257 collisionEvent->getEntityB()->getClassCName(), *it); 258 258 return true; } 259 259 } 260 260 else { 261 261 if( collisionEvent->getEntityA()->isA((ClassID)(*it))) { 262 PRINTF(5)("I am: %s colliding with: %s is a %i filter ok\n", owner->getClass Name(),263 collisionEvent->getEntityA()->getClass Name(), *it);262 PRINTF(5)("I am: %s colliding with: %s is a %i filter ok\n", owner->getClassCName(), 263 collisionEvent->getEntityA()->getClassCName(), *it); 264 264 return true; } 265 265 } -
branches/proxy/src/lib/collision_reaction/cr_object_damage.cc
r9357 r9371 57 57 58 58 PRINTF(4)("Dealing damage - Handling collision: %s vs %s\n", 59 collision->getEntityA()->getClass Name(),60 collision->getEntityB()->getClass Name());59 collision->getEntityA()->getClassCName(), 60 collision->getEntityB()->getClassCName()); 61 61 62 62 // the collision damage been dealed by the entity … … 64 64 damage = collision->getEntityB()->getDamage(); 65 65 collision->getEntityA()->hit(damage, collision->getEntityB()); 66 PRINTF(4)("Dealing damage - %f damage to %s \n", damage, collision->getEntityA()->getClass Name());66 PRINTF(4)("Dealing damage - %f damage to %s \n", damage, collision->getEntityA()->getClassCName()); 67 67 } 68 68 … … 70 70 damage = collision->getEntityA()->getDamage(); 71 71 collision->getEntityB()->hit(damage, collision->getEntityA()); 72 PRINTF(4)("Dealing damage - %f damage to %s \n", damage, collision->getEntityB()->getClass Name());72 PRINTF(4)("Dealing damage - %f damage to %s \n", damage, collision->getEntityB()->getClassCName()); 73 73 } 74 74
Note: See TracChangeset
for help on using the changeset viewer.