Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 11, 2007, 4:40:33 PM (17 years ago)
Author:
bknecht
Message:

My computer is not working anymore, so I upload my unfinished work to continue my work

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/hud/src/world_entities/world_entity.cc

    r10618 r10685  
    813813}
    814814
     815/**
     816 * @brief creates the ImplantWidget
     817 *
     818 * since not all entities need an ImpantWidget, it is only created on request.
     819 */
     820void WorldEntity::createImplantWidget()
     821{
     822  if (this->implantWidget == NULL)
     823  {
     824    this->implantWidget = new OrxGui::GLGuiEnergyWidgetVertical();
     825    //this->impantWidget->setDisplayedName("Implant");
     826    //this->impantWidget->setSize2D(100,20);
     827    //this->impantWidget->setAbsCoor2D(100,200);
     828
     829    //this->updateImplantWidget();
     830  }
     831  else
     832    PRINTF(3)("Allready created the ImlpantWidget for %s::%s\n", this->getClassCName(), this->getCName());
     833}
     834
    815835void WorldEntity::increaseHealthMax(float increaseHealth)
    816836{
     
    824844  this->createHealthWidget();
    825845  return this->healthWidget;
     846}
     847
     848
     849OrxGui::GLGuiWidget* WorldEntity::getImplantWidget()
     850{
     851  this->createImplantWidget();
     852  return this->implantWidget;
    826853}
    827854
Note: See TracChangeset for help on using the changeset viewer.