Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10698 in orxonox.OLD for trunk/src/util/hud.h


Ignore:
Timestamp:
Jun 14, 2007, 5:33:43 PM (17 years ago)
Author:
snellen
Message:

merged adm, hud, vs-enhancements : beni's responsible for this commit. blame him!

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/util/hud.h

    r10368 r10698  
    2828
    2929public:
     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 
    3041  Hud();
    3142  virtual ~Hud();
     
    3647  void notifyUser(const std::string& message);
    3748
     49  inline void setMode(Hud::Playmode playmode) {this->playmode = playmode;};
     50  inline Hud::Playmode getMode() {return this->playmode;};
    3851
    3952  void setBackGround();
    4053  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
    4358  inline OrxGui::GLGuiWidget* getEnergyWidget() {return this->energyWidget;};
    4459  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;};
    4662
    4763  void setWeaponManager(WeaponManager* weaponMan, WeaponManager* weaponManSec = NULL);
     
    8298  unsigned int             resX;
    8399  unsigned int             resY;
     100 
     101  Hud::Playmode                         playmode;
    84102
    85103  float                    travelZoneWidth; //the percentage of the screen, the player has got for his movements. should always be a value between 0 and 1;
     
    87105  OrxGui::GLGuiWidget*     energyWidget;
    88106  OrxGui::GLGuiWidget*     shieldWidget;
    89   OrxGui::GLGuiWidget*     armorWidget;
     107  OrxGui::GLGuiWidget*     healthWidget;
     108  OrxGui::GLGuiWidget*     implantWidget;
    90109
    91110  OrxGui::GLGuiNotifier*   notifier;
     
    96115  OrxGui::GLGuiWidget*     rightRect;
    97116  OrxGui::GLGuiWidget*     leftRect;
     117  OrxGui::GLGuiWidget*          topRect;
     118  OrxGui::GLGuiWidget*          bottomRect;
     119  OrxGui::GLGuiWidget*          middleRect;
     120  OrxGui::GLGuiWidget*          barSocket;
    98121  bool                     overlayActive;
    99122  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.