Changeset 8778 in orxonox.OLD for trunk/src/world_entities
- Timestamp:
- Jun 26, 2006, 1:05:42 AM (18 years ago)
- Location:
- trunk/src/world_entities
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/test_entity.cc
r8490 r8778 107 107 if( this->lastCollided != entity) 108 108 { 109 this->d ieHard();109 this->destroy(); 110 110 this->lastCollided = entity; 111 111 … … 117 117 118 118 119 void TestEntity::d ieHard()119 void TestEntity::destroy() 120 120 { 121 121 if( this->bDeath) -
trunk/src/world_entities/test_entity.h
r8724 r8778 25 25 void setAnim(int animationIndex, int animPlaybackMode); 26 26 27 v oid dieHard();27 virtual void destroy(); 28 28 29 29 virtual void tick (float time); -
trunk/src/world_entities/world_entity.cc
r8777 r8778 738 738 this->decreaseHealth(damage); 739 739 740 PRINTF( 0)("Hit me: %s now only %f/%f health\n", this->getClassName(), this->getHealth(), this->getHealthMax());740 PRINTF(5)("Hit me: %s now only %f/%f health\n", this->getClassName(), this->getHealth(), this->getHealthMax()); 741 741 742 742 if( this->getHealth() > 0) … … 759 759 void WorldEntity::destroy() 760 760 { 761 PRINTF(0)("Destroy\n");762 761 this->toList(OM_DEAD); 763 762 }
Note: See TracChangeset
for help on using the changeset viewer.