Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6431 in orxonox.OLD for trunk/src/world_entities/world_entity.cc


Ignore:
Timestamp:
Jan 8, 2006, 12:52:23 AM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: projectile inherits Energies from WorldEntity

File:
1 edited

Legend:

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

    r6430 r6431  
    391391}
    392392
     393/**
     394 * @brief creates the EnergyWidget
     395 *
     396 * since not all entities need an EnergyWidget, it is only created on request.
     397 */
    393398void WorldEntity::createEnergyWidget()
    394399{
     
    397402    this->energyWidget = new GLGuiBar();
    398403    this->energyWidget->setSize2D(30,400);
    399     this->energyWidget->setAbsCoor2D(5,100);
     404    this->energyWidget->setAbsCoor2D(10,100);
    400405
    401406    this->updateEnergyWidget();
     
    405410}
    406411
     412/**
     413 * @param visibility shows or hides the energy-bar
     414 * (creates the widget if needed)
     415 */
    407416void WorldEntity::setEnergyWidgetVisibilit(bool visibility)
    408417{
     
    422431}
    423432
     433/**
     434 * @brief updates the EnergyWidget
     435 */
    424436void WorldEntity::updateEnergyWidget()
    425437{
Note: See TracChangeset for help on using the changeset viewer.