Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 21, 2007, 2:29:46 AM (17 years ago)
Author:
nicolasc
Message:

Widget Improvements

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/presentation/src/world_entities/space_ships/space_ship.cc

    r10758 r10760  
    305305
    306306
    307   dynamic_cast<WorldEntity*>(this)->createHealthWidget();
    308   dynamic_cast<WorldEntity*>(this)->createShieldWidget();
    309   dynamic_cast<WorldEntity*>(this)->createElectronicWidget();
     307  this->createHealthWidget();
     308  this->createShieldWidget();
     309  this->createElectronicWidget();
    310310
    311311  if ( this->hasPlayer() ){
     
    428428void SpaceShip::tick (float time)
    429429{
    430  
    431   printf("Ship Status: %f, %f\n", this->getHealth(), this->getShield());
    432  
     430
    433431  if(caminit)
    434432  {
     
    10841082void SpaceShip::hit( float damage, WorldEntity * killer )
    10851083{
    1086   printf("SS HIT: %f, %f \n", this->getHealth() , this->getShield());
     1084  PRINTF(4)("SS HIT: %f, %f \n", this->getHealth(), this->getShield());
    10871085  Playable::hit( damage, killer );
    1088   PRINTF(4)("SS HIT: %f\n", this->getHealth());
     1086  PRINTF(4)("SS HIT: %f, %f \n", this->getHealth(), this->getShield());
    10891087}
    10901088
Note: See TracChangeset for help on using the changeset viewer.