Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/src/orxonox/hud/HUD.h @ 920

Last change on this file since 920 was 790, checked in by nicolasc, 17 years ago

merged FICN back into trunk
awaiting release.

File size: 3.1 KB
RevLine 
[668]1/*
[708]2*   ORXONOX - the hottest 3D action shooter ever to exist
3*
4*
5*   License notice:
6*
7*   This program is free software; you can redistribute it and/or
8*   modify it under the terms of the GNU General Public License
9*   as published by the Free Software Foundation; either version 2
10*   of the License, or (at your option) any later version.
11*
12*   This program is distributed in the hope that it will be useful,
13*   but WITHOUT ANY WARRANTY; without even the implied warranty of
14*   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15*   GNU General Public License for more details.
16*
17*   You should have received a copy of the GNU General Public License
18*   along with this program; if not, write to the Free Software
19*   Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301, USA.
20*
21*   Author:
22*      Yuning Chai
23*   Co-authors:
24*      ...
25*
26*/
[668]27
[673]28#ifndef _HUD_H__
29#define _HUD_H__
[587]30
[715]31#include <string>
32
[668]33#include <OgrePrerequisites.h>
[587]34
[708]35#include "../OrxonoxPrereqs.h"
[587]36
37
[708]38namespace orxonox
39{
[729]40  class _OrxonoxExport HUD
[708]41  {
[587]42  private:
[668]43    Ogre::OverlayElement* timeText_;
44    Ogre::OverlayElement* targetWindowNameText_;
45    Ogre::OverlayElement* targetWindowStatusText_;
46    Ogre::OverlayElement* targetWindowDistanceText_;
47    Ogre::OverlayElement* targetWindowHitRatingText_;
48    Ogre::OverlayElement* energyLength_;
49    Ogre::OverlayElement* shieldLeftTop_;
50    Ogre::OverlayElement* shieldRightTop_;
51    Ogre::OverlayElement* shieldLeftBottom_;
52    Ogre::OverlayElement* shieldRightBottom_;
53    Ogre::OverlayElement* rocketNum1_;
54    Ogre::OverlayElement* rocketNum2_;
55    Ogre::OverlayElement* rocketNum3_;
56    Ogre::OverlayElement* rocketNum4_;
57    Ogre::OverlayElement* energyDistrPoint_;
58    Ogre::OverlayElement* primarChoice_;
[587]59
[668]60    int timeMin_;
61    int timeSec_;
[587]62
[715]63    std::string targetWindowName_;
64    std::string targetWindowStatus_;
[668]65    int targetWindowDistance_;
66    int targetWindowHitRating_;
[587]67
[668]68    int energyValue_;
[587]69
[668]70    bool shieldLeftTopValue_;
71    bool shieldRightTopValue_;
72    bool shieldLeftBottomValue_;
73    bool shieldRightBottomValue_;
[587]74
[668]75    int rocket1_;
76    int rocket2_;
77    int rocket3_;
78    int rocket4_;
[587]79
[668]80    float energyDistrShield_;
81    float energyDistrEngine_;
82    float energyDistrLaser_;
[587]83
[668]84    float energyDistrPixelX_;
85    float energyDistrPixelY_;
[587]86
[668]87    int primarValue_;
[587]88
[659]89  public:
[668]90    HUD( void );
91    ~HUD( void );
92    void init( void );
[587]93
[668]94    void setTime(int i, int j);
[715]95    void setTargetWindowName(std::string i);
96    void setTargetWindowStatus(std::string i);
[668]97    void setTargetWindowDistance(int i);
98    void setTargetWindowHitRating(int i);
99    void setEnergyValue(int i);
100    void setShieldLeftTopValue(bool i);
101    void setShieldRightTopValue(bool i);
102    void setShieldLeftBottomValue(bool i);
103    void setShieldRightBottomValue(bool i);
104    void setRocket1(int i);
105    void setRocket2(int i);
106    void setRocket3(int i);
107    void setRocket4(int i);
108    void setEnergyDistr(float s, float e, float l);
109    void setPrimar(int i);
[587]110
[668]111  };
112}
[587]113
[673]114#endif /* _HUD_H__ */
Note: See TracBrowser for help on using the repository browser.