Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6438 in orxonox.OLD for trunk/src/world_entities/weapons/turret.cc


Ignore:
Timestamp:
Jan 8, 2006, 1:51:55 PM (18 years ago)
Author:
bensch
Message:

trunk: widget war

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/world_entities/weapons/turret.cc

    r6435 r6438  
    9696  this->setEmissionPoint(1.684, 0.472, 0);
    9797  //this->getProjectileFactory()->prepare(100);
    98 
    99   this->bar = new GLGuiBar;
    100   this->bar->setSize2D( 20, 100);
    101   this->bar->setMaximum(this->getEnergyMax());
    102   this->bar->setValue(this->getEnergy());
    103   this->loadedBar = new GLGuiBar;
    104   this->loadedBar->setParent2D(this->bar);
    105   this->loadedBar->setRelCoor2D(20,0);
    106   this->loadedBar->setSize2D(10,50);
    107   this->loadedBar->setMaximum(this->getLoadedEnergyMax());
    10898}
    10999
     
    116106void Turret::activate()
    117107{
    118   this->bar->show();
    119   this->loadedBar->show();
    120108}
    121109
    122110void Turret::deactivate()
    123111{
    124   this->bar->hide();
    125   this->loadedBar->hide();
    126112}
    127113
     
    156142  pj->setAbsDir(this->getAbsDir());
    157143  pj->activate();
    158 
    159   this->bar->setValue( this->getEnergy());
    160   this->loadedBar->setValue(this->getLoadedEnergy());
    161144}
    162145
Note: See TracChangeset for help on using the changeset viewer.