Changeset 10685 in orxonox.OLD for branches/hud/src/util/hud.h
- Timestamp:
- Jun 11, 2007, 4:40:33 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/hud/src/util/hud.h
r10368 r10685 28 28 29 29 public: 30 31 typedef enum { 32 Vertical = 1, //!< Vertical (seen from left or right/move in x-z) 33 Horizontal = 2, //!< Horizontal (seet from the top/move in x-y) 34 FromBehind = 4, //!< Seen from behind (move in z-y) 35 Full3D = 8, //!< Full featured 3D-mode. (move in all directions x-y-z) 36 FirstPerson = 16, 37 38 PlaymodeCount = 5, 39 } Playmode; 40 30 41 Hud(); 31 42 virtual ~Hud(); … … 36 47 void notifyUser(const std::string& message); 37 48 49 inline void setMode(Hud::Playmode playmode) {this->playmode = playmode;}; 50 inline Hud::Playmode getMode() {return this->playmode;}; 38 51 39 52 void setBackGround(); 40 53 void setEnergyWidget(OrxGui::GLGuiWidget* widget); 41 void setShiledWidget(OrxGui::GLGuiWidget* widget); 42 void setArmorWidget(OrxGui::GLGuiWidget* widget); 54 void setShieldWidget(OrxGui::GLGuiWidget* widget); 55 void setHealthWidget(OrxGui::GLGuiWidget* widget); 56 void setImplantWidget(OrxGui::GLGuiWidget* widget); 43 57 inline OrxGui::GLGuiWidget* getEnergyWidget() {return this->energyWidget;}; 44 58 inline OrxGui::GLGuiWidget* getShieldWidget() {return this->shieldWidget;}; 45 inline OrxGui::GLGuiWidget* getArmorWidget() {return this->armorWidget;}; 59 inline OrxGui::GLGuiWidget* getHealthWidget() {return this->healthWidget;}; 60 inline OrxGui::GLGuiWidget* getImplantWidget() {return this->implantWidget;}; 46 61 47 62 void setWeaponManager(WeaponManager* weaponMan, WeaponManager* weaponManSec = NULL); … … 82 97 unsigned int resX; 83 98 unsigned int resY; 99 100 Hud::Playmode playmode; 84 101 85 102 float travelZoneWidth; //the percentage of the screen, the player has got for his movements. should always be a value between 0 and 1; … … 87 104 OrxGui::GLGuiWidget* energyWidget; 88 105 OrxGui::GLGuiWidget* shieldWidget; 89 OrxGui::GLGuiWidget* armorWidget; 106 OrxGui::GLGuiWidget* healthWidget; 107 OrxGui::GLGuiWidget* implantWidget; 90 108 91 109 OrxGui::GLGuiNotifier* notifier; … … 96 114 OrxGui::GLGuiWidget* rightRect; 97 115 OrxGui::GLGuiWidget* leftRect; 116 OrxGui::GLGuiWidget* topRect; 117 OrxGui::GLGuiWidget* bottomRect; 118 OrxGui::GLGuiWidget* middleRect; 119 OrxGui::GLGuiWidget* barSocket; 98 120 bool overlayActive; 99 121 int overlayPercentage; //the percentage of the screen, the player has got for his movements. should always be a value between 0 and 1;
Note: See TracChangeset
for help on using the changeset viewer.