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