Changeset 10698 in orxonox.OLD for trunk/src/util/hud.h
- Timestamp:
- Jun 14, 2007, 5:33:43 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/util/hud.h
r10368 r10698 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); 57 43 58 inline OrxGui::GLGuiWidget* getEnergyWidget() {return this->energyWidget;}; 44 59 inline OrxGui::GLGuiWidget* getShieldWidget() {return this->shieldWidget;}; 45 inline OrxGui::GLGuiWidget* getArmorWidget() {return this->armorWidget;}; 60 inline OrxGui::GLGuiWidget* getHealthWidget() {return this->healthWidget;}; 61 inline OrxGui::GLGuiWidget* getImplantWidget() {return this->implantWidget;}; 46 62 47 63 void setWeaponManager(WeaponManager* weaponMan, WeaponManager* weaponManSec = NULL); … … 82 98 unsigned int resX; 83 99 unsigned int resY; 100 101 Hud::Playmode playmode; 84 102 85 103 float travelZoneWidth; //the percentage of the screen, the player has got for his movements. should always be a value between 0 and 1; … … 87 105 OrxGui::GLGuiWidget* energyWidget; 88 106 OrxGui::GLGuiWidget* shieldWidget; 89 OrxGui::GLGuiWidget* armorWidget; 107 OrxGui::GLGuiWidget* healthWidget; 108 OrxGui::GLGuiWidget* implantWidget; 90 109 91 110 OrxGui::GLGuiNotifier* notifier; … … 96 115 OrxGui::GLGuiWidget* rightRect; 97 116 OrxGui::GLGuiWidget* leftRect; 117 OrxGui::GLGuiWidget* topRect; 118 OrxGui::GLGuiWidget* bottomRect; 119 OrxGui::GLGuiWidget* middleRect; 120 OrxGui::GLGuiWidget* barSocket; 98 121 bool overlayActive; 99 122 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.