Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


Ignore:
Timestamp:
Jan 8, 2006, 1:12:38 PM (20 years ago)
Author:
bensch
Message:

trunk: added HUD definition and removed user_control

File:
1 copied

Legend:

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

    r6436 r6437  
    11/*!
    2  * @file proto_class.h
    3  * @brief Definition of ...
     2 * @file hud.h
     3 * @brief Definition of the ingame HUD.
    44*/
    55
    6 #ifndef _PROTO_CLASS_H
    7 #define _PROTO_CLASS_H
     6#ifndef _HUD_H
     7#define _HUD_H
    88
    9 #include "base_object.h"
     9#include "element_2d.h"
     10#include <list>
    1011
    1112// FORWARD DECLARATION
     13#include "glgui_widget.h"
    1214
    1315
    1416
    15 //! A class for ...
    16 class ProtoClass : public BaseObject {
     17//! A class that renders a HUD.
     18class Hud : private GLGuiWidget {
    1719
    1820 public:
    19   ProtoClass();
    20   virtual ~ProtoClass();
     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);
    2131
    2232
    2333 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.
    2436
     37   GLGuiWidget*             energyWidget;
     38   GLGuiWidget*             shieldWidget;
     39   GLGuiWidget*             armorWidget;
     40
     41   std::list<GLGuiWidget*>  weaponsWidgets; //!< WeaponWidgets will be displayed one after another
    2542};
    2643
    27 #endif /* _PROTO_CLASS_H */
     44#endif /* _HUD_H */
Note: See TracChangeset for help on using the changeset viewer.