Changeset 6438 in orxonox.OLD for trunk/src/util
- Timestamp:
- Jan 8, 2006, 1:51:55 PM (19 years ago)
- Location:
- trunk/src/util
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/hud.cc
r6437 r6438 27 27 Hud::Hud () 28 28 { 29 29 this->setClassID(CL_HUD, "Hud"); 30 30 31 31 } … … 39 39 // delete what has to be deleted here 40 40 } 41 42 43 void Hud::loadParams(const TiXmlElement* root) 44 { 45 46 } 47 48 void Hud::setBackGround() 49 { 50 51 } 52 53 void Hud::setEnergyWidget(GLGuiWidget* widget) 54 { 55 56 } 57 58 void Hud::setShiledWidget(GLGuiWidget* widget) 59 { 60 61 } 62 63 void Hud::setArmorWidget(GLGuiWidget* widget) 64 { 65 66 } 67 68 void Hud::addWeaponWidget(GLGuiWidget* widget) 69 { 70 71 } 72 73 void Hud::removeWeaponWidget(GLGuiWidget* widget) 74 { 75 76 } 77 78 void setResolution(unsigned int resX, unsigned int resY); -
trunk/src/util/hud.h
r6437 r6438 7 7 #define _HUD_H 8 8 9 #include " element_2d.h"9 #include "glgui_widget.h" 10 10 #include <list> 11 11 12 12 // FORWARD DECLARATION 13 #include "glgui_widget.h" 14 13 class TiXmlElement; 15 14 16 15 17 16 //! A class that renders a HUD. 18 class Hud : private GLGuiWidget { 17 class Hud : private GLGuiWidget 18 { 19 19 20 20 public: 21 21 Hud(); 22 22 virtual ~Hud(); 23 24 void loadParams(const TiXmlElement* root); 23 25 24 26 void setBackGround(); … … 30 32 void removeWeaponWidget(GLGuiWidget* widget); 31 33 34 void setResolution(unsigned int resX, unsigned int resY); 32 35 33 34 35 36 private: 37 unsigned int resX; //!< The X-Resolution needed for resizing the Hud. 38 unsigned int resY; //!< The Y-Resolution needed for resizing the Hud. 36 39 37 38 39 40 GLGuiWidget* energyWidget; 41 GLGuiWidget* shieldWidget; 42 GLGuiWidget* armorWidget; 40 43 41 44 std::list<GLGuiWidget*> weaponsWidgets; //!< WeaponWidgets will be displayed one after another 42 45 }; 43 46
Note: See TracChangeset
for help on using the changeset viewer.