[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 | */ |
---|
[991] | 27 | |
---|
| 28 | |
---|
| 29 | #ifndef _HUD_H__ |
---|
| 30 | #define _HUD_H__ |
---|
| 31 | |
---|
| 32 | #include <string.h> |
---|
| 33 | #include <OgreOverlayElement.h> |
---|
| 34 | #include <OgreTextAreaOverlayElement.h> |
---|
| 35 | #include <OgrePrerequisites.h> |
---|
| 36 | #include "../OrxonoxPrereqs.h" |
---|
| 37 | |
---|
| 38 | #include "Bar.h" |
---|
| 39 | |
---|
| 40 | |
---|
| 41 | namespace orxonox |
---|
| 42 | { |
---|
| 43 | class _OrxonoxExport HUD |
---|
| 44 | { |
---|
| 45 | private: |
---|
| 46 | |
---|
| 47 | public: |
---|
| 48 | HUD(int zoom); |
---|
| 49 | ~HUD(); |
---|
| 50 | |
---|
| 51 | Bar* energyCounter; |
---|
| 52 | }; |
---|
| 53 | } |
---|
| 54 | |
---|
| 55 | |
---|
| 56 | |
---|
| 57 | |
---|
| 58 | |
---|
| 59 | |
---|
| 60 | |
---|
| 61 | |
---|
| 62 | |
---|
| 63 | #endif _HUD_H_ |
---|
| 64 | |
---|
| 65 | /*#ifndef _HUD_H__ |
---|
| 66 | #define _HUD_H__ |
---|
| 67 | |
---|
| 68 | #include <string> |
---|
| 69 | |
---|
| 70 | #include <OgrePrerequisites.h> |
---|
| 71 | |
---|
| 72 | #include "../OrxonoxPrereqs.h" |
---|
| 73 | |
---|
| 74 | |
---|
| 75 | namespace orxonox |
---|
| 76 | { |
---|
| 77 | class _OrxonoxExport HUD |
---|
| 78 | { |
---|
| 79 | private: |
---|
| 80 | Ogre::OverlayElement* timeText_; |
---|
| 81 | Ogre::OverlayElement* targetWindowNameText_; |
---|
| 82 | Ogre::OverlayElement* targetWindowStatusText_; |
---|
| 83 | Ogre::OverlayElement* targetWindowDistanceText_; |
---|
| 84 | Ogre::OverlayElement* targetWindowHitRatingText_; |
---|
| 85 | Ogre::OverlayElement* energyLength_; |
---|
| 86 | Ogre::OverlayElement* shieldLeftTop_; |
---|
| 87 | Ogre::OverlayElement* shieldRightTop_; |
---|
| 88 | Ogre::OverlayElement* shieldLeftBottom_; |
---|
| 89 | Ogre::OverlayElement* shieldRightBottom_; |
---|
| 90 | Ogre::OverlayElement* rocketNum1_; |
---|
| 91 | Ogre::OverlayElement* rocketNum2_; |
---|
| 92 | Ogre::OverlayElement* rocketNum3_; |
---|
| 93 | Ogre::OverlayElement* rocketNum4_; |
---|
| 94 | Ogre::OverlayElement* energyDistrPoint_; |
---|
| 95 | Ogre::OverlayElement* primarChoice_; |
---|
| 96 | |
---|
| 97 | int timeMin_; |
---|
| 98 | int timeSec_; |
---|
| 99 | |
---|
| 100 | std::string targetWindowName_; |
---|
| 101 | std::string targetWindowStatus_; |
---|
| 102 | int targetWindowDistance_; |
---|
| 103 | int targetWindowHitRating_; |
---|
| 104 | |
---|
| 105 | int energyValue_; |
---|
| 106 | |
---|
| 107 | bool shieldLeftTopValue_; |
---|
| 108 | bool shieldRightTopValue_; |
---|
| 109 | bool shieldLeftBottomValue_; |
---|
| 110 | bool shieldRightBottomValue_; |
---|
| 111 | |
---|
| 112 | int rocket1_; |
---|
| 113 | int rocket2_; |
---|
| 114 | int rocket3_; |
---|
| 115 | int rocket4_; |
---|
| 116 | |
---|
| 117 | float energyDistrShield_; |
---|
| 118 | float energyDistrEngine_; |
---|
| 119 | float energyDistrLaser_; |
---|
| 120 | |
---|
| 121 | float energyDistrPixelX_; |
---|
| 122 | float energyDistrPixelY_; |
---|
| 123 | |
---|
| 124 | int primarValue_; |
---|
| 125 | |
---|
| 126 | public: |
---|
| 127 | HUD( void ); |
---|
| 128 | ~HUD( void ); |
---|
| 129 | void init( void ); |
---|
| 130 | |
---|
| 131 | void setTime(int i, int j); |
---|
| 132 | void setTargetWindowName(std::string i); |
---|
| 133 | void setTargetWindowStatus(std::string i); |
---|
| 134 | void setTargetWindowDistance(int i); |
---|
| 135 | void setTargetWindowHitRating(int i); |
---|
| 136 | void setEnergyValue(int i); |
---|
| 137 | void setShieldLeftTopValue(bool i); |
---|
| 138 | void setShieldRightTopValue(bool i); |
---|
| 139 | void setShieldLeftBottomValue(bool i); |
---|
| 140 | void setShieldRightBottomValue(bool i); |
---|
| 141 | void setRocket1(int i); |
---|
| 142 | void setRocket2(int i); |
---|
| 143 | void setRocket3(int i); |
---|
| 144 | void setRocket4(int i); |
---|
| 145 | void setEnergyDistr(float s, float e, float l); |
---|
| 146 | void setPrimar(int i); |
---|
| 147 | |
---|
| 148 | }; |
---|
| 149 | } |
---|
| 150 | |
---|
| 151 | #endif /* _HUD_H__ */ |
---|