Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 6438 in orxonox.OLD for trunk/src/util


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

trunk: widget war

Location:
trunk/src/util
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/hud.cc

    r6437 r6438  
    2727Hud::Hud ()
    2828{
    29    this->setClassID(CL_HUD, "Hud");
     29  this->setClassID(CL_HUD, "Hud");
    3030
    3131}
     
    3939  // delete what has to be deleted here
    4040}
     41
     42
     43void Hud::loadParams(const TiXmlElement* root)
     44{
     45
     46}
     47
     48void Hud::setBackGround()
     49{
     50
     51}
     52
     53void Hud::setEnergyWidget(GLGuiWidget* widget)
     54{
     55
     56}
     57
     58void Hud::setShiledWidget(GLGuiWidget* widget)
     59{
     60
     61}
     62
     63void Hud::setArmorWidget(GLGuiWidget* widget)
     64{
     65
     66}
     67
     68void Hud::addWeaponWidget(GLGuiWidget* widget)
     69{
     70
     71}
     72
     73void Hud::removeWeaponWidget(GLGuiWidget* widget)
     74{
     75
     76}
     77
     78void setResolution(unsigned int resX, unsigned int resY);
  • trunk/src/util/hud.h

    r6437 r6438  
    77#define _HUD_H
    88
    9 #include "element_2d.h"
     9#include "glgui_widget.h"
    1010#include <list>
    1111
    1212// FORWARD DECLARATION
    13 #include "glgui_widget.h"
    14 
     13class TiXmlElement;
    1514
    1615
    1716//! A class that renders a HUD.
    18 class Hud : private GLGuiWidget {
     17class Hud : private GLGuiWidget
     18{
    1919
    20  public:
     20public:
    2121  Hud();
    2222  virtual ~Hud();
     23
     24  void loadParams(const TiXmlElement* root);
    2325
    2426  void setBackGround();
     
    3032  void removeWeaponWidget(GLGuiWidget* widget);
    3133
     34  void setResolution(unsigned int resX, unsigned int resY);
    3235
    33  private:
    34    unsigned int             resX;          //!< The X-Resolution needed for resizing the Hud.
    35    unsigned int             resY;          //!< The Y-Resolution needed for resizing the Hud.
     36private:
     37  unsigned int             resX;          //!< The X-Resolution needed for resizing the Hud.
     38  unsigned int             resY;          //!< The Y-Resolution needed for resizing the Hud.
    3639
    37    GLGuiWidget*             energyWidget;
    38    GLGuiWidget*             shieldWidget;
    39    GLGuiWidget*             armorWidget;
     40  GLGuiWidget*             energyWidget;
     41  GLGuiWidget*             shieldWidget;
     42  GLGuiWidget*             armorWidget;
    4043
    41    std::list<GLGuiWidget*>  weaponsWidgets; //!< WeaponWidgets will be displayed one after another
     44  std::list<GLGuiWidget*>  weaponsWidgets; //!< WeaponWidgets will be displayed one after another
    4245};
    4346
Note: See TracChangeset for help on using the changeset viewer.