Changeset 10230 in orxonox.OLD for branches/playability/src/util/hud.h
- Timestamp:
- Jan 10, 2007, 7:16:00 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/playability/src/util/hud.h
r10194 r10230 10 10 #include "event_listener.h" 11 11 #include "glgui_box.h" 12 #include "elements/glgui_energywidgetvertical.h" 12 13 13 14 … … 53 54 void updateWeaponManager(); 54 55 56 inline void setTravelZoneWidth(float width) 57 { 58 if (width > 1) width = 1; 59 else if (width < 0) width = 0; 60 61 this->travelZoneWidth = width; 62 }; 63 55 64 void draw() const; 56 65 virtual void process(const Event &event); … … 65 74 unsigned int resY; 66 75 76 float travelZoneWidth; //the percentage of the screen, the player has got for his movements. should always be a value between 0 and 1; 77 67 78 OrxGui::GLGuiWidget* energyWidget; 68 79 OrxGui::GLGuiWidget* shieldWidget; 69 80 OrxGui::GLGuiWidget* armorWidget; 70 //OrxGui::GLGuiBox* shipValuesBox;71 81 72 82 OrxGui::GLGuiNotifier* notifier; … … 74 84 OrxGui::GLGuiRadar* _radar; 75 85 86 OrxGui::GLGuiWidget* rightRect, leftRect; 87 76 88 WeaponManager* weaponManager; 77 89 WeaponManager* weaponManagerSecondary; 78 90 79 std::list<OrxGui::GLGuiWidget*> weaponsWidgets; //!< WeaponWidgets will be displayed one after another 91 std::list<OrxGui::GLGuiEnergyWidgetVertical*> weaponsWidgetsPrim; //!< WeaponWidgets will be displayed one after another 92 std::list<OrxGui::GLGuiEnergyWidgetVertical*> weaponsWidgetsSec; 80 93 }; 81 94
Note: See TracChangeset
for help on using the changeset viewer.