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