Changeset 9406 in orxonox.OLD for trunk/src/world_entities/world_entity.cc
- Timestamp:
- Jul 24, 2006, 11:09:47 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/world_entity.cc
r9235 r9406 414 414 bool WorldEntity::registerCollision(WorldEntity* entityA, WorldEntity* entityB, BoundingVolume* bvA, BoundingVolume* bvB) 415 415 { 416 PRINTF(5)("registering collision of type: %s vs %s\n", entityA->getClass Name(), entityB->getClassName());416 PRINTF(5)("registering collision of type: %s vs %s\n", entityA->getClassCName(), entityB->getClassCName()); 417 417 // is there any handler listening? 418 418 if( !this->bReactive) … … 506 506 * You can always define a default Action.... don't be affraid just test it :) 507 507 */ 508 // PRINTF(3)("collision %s vs %s @ (%f,%f,%f)\n", this->getClass Name(), entity->getClassName(), location.x, location.y, location.z);508 // PRINTF(3)("collision %s vs %s @ (%f,%f,%f)\n", this->getClassCName(), entity->getClassCName(), location.x, location.y, location.z); 509 509 } 510 510 … … 518 518 void WorldEntity::collidesWithGround(const Vector& location) 519 519 { 520 PRINTF(0)("BSP_GROUND: %s collides \n", this->getClass Name() );520 PRINTF(0)("BSP_GROUND: %s collides \n", this->getClassCName() ); 521 521 } 522 522 … … 524 524 { 525 525 526 // PRINTF(0)("BSP_GROUND: Player collides \n", this->getClass Name() );526 // PRINTF(0)("BSP_GROUND: Player collides \n", this->getClassCName() ); 527 527 528 528 Vector v = this->getAbsDirX(); … … 594 594 void WorldEntity::draw() const 595 595 { 596 //PRINTF(0)("(%s::%s)\n", this->getClass Name(), this->getName());596 //PRINTF(0)("(%s::%s)\n", this->getClassCName(), this->getName()); 597 597 // assert(!unlikely(this->models.empty())); 598 598 { … … 676 676 if (this->health > this->healthMax) 677 677 { 678 PRINTF(3)("new maxHealth is bigger as the old health. Did you really intend to do this for (%s::%s)\n", this->getClass Name(), this->getName());678 PRINTF(3)("new maxHealth is bigger as the old health. Did you really intend to do this for (%s::%s)\n", this->getClassCName(), this->getCName()); 679 679 this->health = this->healthMax; 680 680 } … … 699 699 } 700 700 else 701 PRINTF(3)("Allready created the HealthWidget for %s::%s\n", this->getClass Name(), this->getName());701 PRINTF(3)("Allready created the HealthWidget for %s::%s\n", this->getClassCName(), this->getCName()); 702 702 } 703 703 … … 745 745 this->decreaseHealth(damage); 746 746 747 PRINTF(5)("Hit me: %s now only %f/%f health\n", this->getClassName(), this->getHealth(), this->getHealthMax());747 PRINTF(5)("Hit me: %s::%s now only %f/%f health\n", this->getClassCName(), this->getCName(), this->getHealth(), this->getHealthMax()); 748 748 749 749 if( this->getHealth() > 0) … … 811 811 void WorldEntity::debugEntity() const 812 812 { 813 PRINT(0)("WorldEntity %s::%s (DEBUG)\n", this->getClass Name(), this->getName());813 PRINT(0)("WorldEntity %s::%s (DEBUG)\n", this->getClassCName(), this->getCName()); 814 814 this->debugNode(); 815 815 PRINT(0)("List: %s ; ModelCount %d - ", ObjectManager::OMListToString(this->objectListNumber) , this->models.size()); … … 817 817 { 818 818 if (models[i] != NULL) 819 PRINT(0)(" : %d:%s", i, this->models[i]->get Name());819 PRINT(0)(" : %d:%s", i, this->models[i]->getCName()); 820 820 } 821 821 PRINT(0)("\n");
Note: See TracChangeset
for help on using the changeset viewer.