Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6441 in orxonox.OLD for trunk/src/world_entities/player.cc


Ignore:
Timestamp:
Jan 8, 2006, 4:02:30 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: the Hud now scales the Widgets itself

File:
1 edited

Legend:

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

    r6440 r6441  
    3838
    3939  this->controllable = NULL;
    40   this->hud = new Hud();
     40  this->hud.show();
    4141
    4242  EventHandler::getInstance()->subscribe(this, ES_GAME, SDLK_l);
     
    4949Player::~Player ()
    5050{
    51   delete this->hud;
    5251
    5352}
     
    5958  {
    6059      this->controllable = controllable;
    61       this->hud->setEnergyWidget(this->controllable->getEnergyWidget());
     60      this->hud.setEnergyWidget(this->controllable->getEnergyWidget());
    6261      return true;
    6362  }
     
    7372   {
    7473     this->controllable = NULL;
    75      this->hud->setEnergyWidget(NULL);
     74     this->hud.setEnergyWidget(NULL);
    7675     return true;
    7776   }
Note: See TracChangeset for help on using the changeset viewer.