Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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/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.