Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 10685 in orxonox.OLD for branches/hud/src/util/hud.h


Ignore:
Timestamp:
Jun 11, 2007, 4:40:33 PM (18 years ago)
Author:
bknecht
Message:

My computer is not working anymore, so I upload my unfinished work to continue my work

File:
1 edited

Legend:

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

    r10368 r10685  
    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);
    4357  inline OrxGui::GLGuiWidget* getEnergyWidget() {return this->energyWidget;};
    4458  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;};
    4661
    4762  void setWeaponManager(WeaponManager* weaponMan, WeaponManager* weaponManSec = NULL);
     
    8297  unsigned int             resX;
    8398  unsigned int             resY;
     99 
     100  Hud::Playmode                         playmode;
    84101
    85102  float                    travelZoneWidth; //the percentage of the screen, the player has got for his movements. should always be a value between 0 and 1;
     
    87104  OrxGui::GLGuiWidget*     energyWidget;
    88105  OrxGui::GLGuiWidget*     shieldWidget;
    89   OrxGui::GLGuiWidget*     armorWidget;
     106  OrxGui::GLGuiWidget*     healthWidget;
     107  OrxGui::GLGuiWidget*     implantWidget;
    90108
    91109  OrxGui::GLGuiNotifier*   notifier;
     
    96114  OrxGui::GLGuiWidget*     rightRect;
    97115  OrxGui::GLGuiWidget*     leftRect;
     116  OrxGui::GLGuiWidget*          topRect;
     117  OrxGui::GLGuiWidget*          bottomRect;
     118  OrxGui::GLGuiWidget*          middleRect;
     119  OrxGui::GLGuiWidget*          barSocket;
    98120  bool                     overlayActive;
    99121  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.