Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/core/src/orxonox/hud/HUD.h @ 847

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

merged FICN back into trunk
awaiting release.

File size: 3.1 KB
Line 
1/*
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*/
27
28#ifndef _HUD_H__
29#define _HUD_H__
30
31#include <string>
32
33#include <OgrePrerequisites.h>
34
35#include "../OrxonoxPrereqs.h"
36
37
38namespace orxonox
39{
40  class _OrxonoxExport HUD
41  {
42  private:
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_;
59
60    int timeMin_;
61    int timeSec_;
62
63    std::string targetWindowName_;
64    std::string targetWindowStatus_;
65    int targetWindowDistance_;
66    int targetWindowHitRating_;
67
68    int energyValue_;
69
70    bool shieldLeftTopValue_;
71    bool shieldRightTopValue_;
72    bool shieldLeftBottomValue_;
73    bool shieldRightBottomValue_;
74
75    int rocket1_;
76    int rocket2_;
77    int rocket3_;
78    int rocket4_;
79
80    float energyDistrShield_;
81    float energyDistrEngine_;
82    float energyDistrLaser_;
83
84    float energyDistrPixelX_;
85    float energyDistrPixelY_;
86
87    int primarValue_;
88
89  public:
90    HUD( void );
91    ~HUD( void );
92    void init( void );
93
94    void setTime(int i, int j);
95    void setTargetWindowName(std::string i);
96    void setTargetWindowStatus(std::string i);
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);
110
111  };
112}
113
114#endif /* _HUD_H__ */
Note: See TracBrowser for help on using the repository browser.