Changeset 6437 in orxonox.OLD for trunk/src/util/hud.h
- Timestamp:
- Jan 8, 2006, 1:12:38 PM (20 years ago)
- File:
-
- 1 copied
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/hud.h
r6436 r6437 1 1 /*! 2 * @file proto_class.h3 * @brief Definition of ...2 * @file hud.h 3 * @brief Definition of the ingame HUD. 4 4 */ 5 5 6 #ifndef _ PROTO_CLASS_H7 #define _ PROTO_CLASS_H6 #ifndef _HUD_H 7 #define _HUD_H 8 8 9 #include "base_object.h" 9 #include "element_2d.h" 10 #include <list> 10 11 11 12 // FORWARD DECLARATION 13 #include "glgui_widget.h" 12 14 13 15 14 16 15 //! A class for ...16 class ProtoClass : public BaseObject {17 //! A class that renders a HUD. 18 class Hud : private GLGuiWidget { 17 19 18 20 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); 21 31 22 32 23 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. 24 36 37 GLGuiWidget* energyWidget; 38 GLGuiWidget* shieldWidget; 39 GLGuiWidget* armorWidget; 40 41 std::list<GLGuiWidget*> weaponsWidgets; //!< WeaponWidgets will be displayed one after another 25 42 }; 26 43 27 #endif /* _ PROTO_CLASS_H */44 #endif /* _HUD_H */
Note: See TracChangeset
for help on using the changeset viewer.