Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/util/hud.h @ 6437

Last change on this file since 6437 was 6437, checked in by bensch, 20 years ago

trunk: added HUD definition and removed user_control

File size: 993 bytes
Line 
1/*!
2 * @file hud.h
3 * @brief Definition of the ingame HUD.
4*/
5
6#ifndef _HUD_H
7#define _HUD_H
8
9#include "element_2d.h"
10#include <list>
11
12// FORWARD DECLARATION
13#include "glgui_widget.h"
14
15
16
17//! A class that renders a HUD.
18class Hud : private GLGuiWidget {
19
20 public:
21  Hud();
22  virtual ~Hud();
23
24  void setBackGround();
25  void setEnergyWidget(GLGuiWidget* widget);
26  void setShiledWidget(GLGuiWidget* widget);
27  void setArmorWidget(GLGuiWidget* widget);
28
29  void addWeaponWidget(GLGuiWidget* widget);
30  void removeWeaponWidget(GLGuiWidget* widget);
31
32
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.
36
37   GLGuiWidget*             energyWidget;
38   GLGuiWidget*             shieldWidget;
39   GLGuiWidget*             armorWidget;
40
41   std::list<GLGuiWidget*>  weaponsWidgets; //!< WeaponWidgets will be displayed one after another
42};
43
44#endif /* _HUD_H */
Note: See TracBrowser for help on using the repository browser.