Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8778 in orxonox.OLD for trunk


Ignore:
Timestamp:
Jun 26, 2006, 1:05:42 AM (19 years ago)
Author:
patrick
Message:

trunk: test model die function reimplemented

Location:
trunk/src/world_entities
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/test_entity.cc

    r8490 r8778  
    107107  if( this->lastCollided != entity)
    108108  {
    109     this->dieHard();
     109    this->destroy();
    110110    this->lastCollided = entity;
    111111
     
    117117
    118118
    119 void TestEntity::dieHard()
     119void TestEntity::destroy()
    120120{
    121121  if( this->bDeath)
  • trunk/src/world_entities/test_entity.h

    r8724 r8778  
    2525  void setAnim(int animationIndex, int animPlaybackMode);
    2626
    27   void dieHard();
     27  virtual void destroy();
    2828
    2929  virtual void tick (float time);
  • trunk/src/world_entities/world_entity.cc

    r8777 r8778  
    738738  this->decreaseHealth(damage);
    739739
    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());
    741741
    742742  if( this->getHealth() > 0)
     
    759759void WorldEntity::destroy()
    760760{
    761   PRINTF(0)("Destroy\n");
    762761  this->toList(OM_DEAD);
    763762}
Note: See TracChangeset for help on using the changeset viewer.