Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 8976 in orxonox.OLD for trunk/src/world_entities/weapons


Ignore:
Timestamp:
Jul 1, 2006, 1:05:38 PM (18 years ago)
Author:
bensch
Message:

orxonox/trunk: the hud displays Energy and WeaponEnergy

Location:
trunk/src/world_entities/weapons
Files:
2 edited

Legend:

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

    r8316 r8976  
    3434#include "sound_buffer.h"
    3535
    36 #include "glgui_bar.h"
     36#include "elements/glgui_energywidget.h"
    3737
    3838using namespace std;
     
    312312  if (this->energyWidget == NULL)
    313313  {
    314     this->energyWidget = new OrxGui::GLGuiBar;
     314    this->energyWidget = new OrxGui::GLGuiEnergyWidget;
    315315    this->energyWidget->setSize2D( 20, 100);
    316316    this->energyWidget->setMaximum(this->getEnergyMax());
  • trunk/src/world_entities/weapons/weapon.h

    r8777 r8976  
    2525class TiXmlElement;
    2626class FastFactory;
    27 namespace OrxGui{ class GLGuiWidget; }
    2827template<class T> class tFastFactory;
    2928
     
    210209    float                maxCharge;                        //!< The maximal energy to be loaded onto one projectile (this is only availible if chargeable is enabled)
    211210
    212     OrxGui::GLGuiBar*    energyWidget;
     211    OrxGui::GLGuiEnergyWidget* energyWidget;
    213212
    214213    PNode*               defaultTarget;                    //!< A target for targeting Weapons.
Note: See TracChangeset for help on using the changeset viewer.