1 | #ifndef MODULE_HUD_H |
---|
2 | #define MODULE_HUD_H |
---|
3 | |
---|
4 | #include <Ogre.h> |
---|
5 | #include <OIS/OIS.h> |
---|
6 | //#include <CEGUI/CEGUI.h> |
---|
7 | //#include <CEGUIRenderer.h> |
---|
8 | |
---|
9 | |
---|
10 | namespace hud |
---|
11 | { |
---|
12 | |
---|
13 | class HUD |
---|
14 | { |
---|
15 | |
---|
16 | private: |
---|
17 | |
---|
18 | Ogre::OverlayElement* timeText_; |
---|
19 | Ogre::OverlayElement* targetWindowNameText_; |
---|
20 | Ogre::OverlayElement* targetWindowStatusText_; |
---|
21 | Ogre::OverlayElement* targetWindowDistanceText_; |
---|
22 | Ogre::OverlayElement* targetWindowHitRatingText_; |
---|
23 | Ogre::OverlayElement* energyLength_; |
---|
24 | Ogre::OverlayElement* shieldLeftTop_; |
---|
25 | Ogre::OverlayElement* shieldRightTop_; |
---|
26 | Ogre::OverlayElement* shieldLeftBottom_; |
---|
27 | Ogre::OverlayElement* shieldRightBottom_; |
---|
28 | Ogre::OverlayElement* rocketNum1_; |
---|
29 | Ogre::OverlayElement* rocketNum2_; |
---|
30 | Ogre::OverlayElement* rocketNum3_; |
---|
31 | Ogre::OverlayElement* rocketNum4_; |
---|
32 | Ogre::OverlayElement* energyDistrPoint_; |
---|
33 | Ogre::OverlayElement* primarChoice_; |
---|
34 | |
---|
35 | |
---|
36 | |
---|
37 | |
---|
38 | |
---|
39 | int timeMin_; |
---|
40 | int timeSec_; |
---|
41 | |
---|
42 | Ogre::String targetWindowName_; |
---|
43 | Ogre::String targetWindowStatus_; |
---|
44 | int targetWindowDistance_; |
---|
45 | int targetWindowHitRating_; |
---|
46 | |
---|
47 | int energyValue_; |
---|
48 | |
---|
49 | bool shieldLeftTopValue_; |
---|
50 | bool shieldRightTopValue_; |
---|
51 | bool shieldLeftBottomValue_; |
---|
52 | bool shieldRightBottomValue_; |
---|
53 | |
---|
54 | int rocket1_; |
---|
55 | int rocket2_; |
---|
56 | int rocket3_; |
---|
57 | int rocket4_; |
---|
58 | |
---|
59 | double energyDistrShield_; |
---|
60 | double energyDistrEngine_; |
---|
61 | double energyDistrLaser_; |
---|
62 | |
---|
63 | double energyDistrPixelX_; |
---|
64 | double energyDistrPixelY_; |
---|
65 | |
---|
66 | int primarValue_; |
---|
67 | |
---|
68 | |
---|
69 | |
---|
70 | |
---|
71 | |
---|
72 | |
---|
73 | public: |
---|
74 | HUD( void ); |
---|
75 | ~HUD( void ); |
---|
76 | void init( void ); |
---|
77 | |
---|
78 | void setTime(int i, int j); |
---|
79 | void setTargetWindowName(Ogre::String i); |
---|
80 | void setTargetWindowStatus(Ogre::String i); |
---|
81 | void setTargetWindowDistance(int i); |
---|
82 | void setTargetWindowHitRating(int i); |
---|
83 | void setEnergyValue(int i); |
---|
84 | void setShieldLeftTopValue(bool i); |
---|
85 | void setShieldRightTopValue(bool i); |
---|
86 | void setShieldLeftBottomValue(bool i); |
---|
87 | void setShieldRightBottomValue(bool i); |
---|
88 | void setRocket1(int i); |
---|
89 | void setRocket2(int i); |
---|
90 | void setRocket3(int i); |
---|
91 | void setRocket4(int i); |
---|
92 | void setEnergyDistr(double s, double e, double l); |
---|
93 | void setPrimar(int i); |
---|
94 | |
---|
95 | |
---|
96 | |
---|
97 | |
---|
98 | |
---|
99 | |
---|
100 | }; |
---|
101 | |
---|
102 | |
---|
103 | } |
---|
104 | #endif |
---|