Changeset 1281 for code/branches/hud3/src/orxonox/hud/HUD.h
- Timestamp:
- May 15, 2008, 2:14:28 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hud3/src/orxonox/hud/HUD.h
r1056 r1281 1 1 /* 2 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 License19 * 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 */ 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 28 29 29 #ifndef _HUD_H__ 30 30 #define _HUD_H__ 31 31 32 #include <string.h> 33 #include <OgreOverlayElement.h> 34 #include <OgreTextAreaOverlayElement.h> 35 #include <OgrePrerequisites.h> 36 32 37 #include "OrxonoxPrereqs.h" 33 38 34 #include <string>35 36 #include <OgrePrerequisites.h>39 #include "core/Tickable.h" 40 #include "BarOverlayElement.h" 41 #include "RadarOverlayElement.h" 37 42 38 43 39 44 namespace orxonox 40 45 { 41 class _OrxonoxExport HUD 46 class _OrxonoxExport HUD// : Tickable 42 47 { 43 48 private: 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_;60 61 int timeMin_;62 int timeSec_;63 64 std::string targetWindowName_;65 std::string targetWindowStatus_;66 int targetWindowDistance_;67 int targetWindowHitRating_;68 69 int energyValue_;70 71 bool shieldLeftTopValue_;72 bool shieldRightTopValue_;73 bool shieldLeftBottomValue_;74 bool shieldRightBottomValue_;75 76 int rocket1_;77 int rocket2_;78 int rocket3_;79 int rocket4_;80 81 float energyDistrShield_;82 float energyDistrEngine_;83 float energyDistrLaser_;84 85 float energyDistrPixelX_;86 float energyDistrPixelY_;87 88 int primarValue_;89 49 90 50 public: 91 HUD( void ); 92 ~HUD( void ); 93 void init( void ); 51 HUD(int zoom); 52 ~HUD(); 94 53 95 void setTime(int i, int j); 96 void setTargetWindowName(std::string i); 97 void setTargetWindowStatus(std::string i); 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); 54 // virtual void tick(float); 111 55 56 SmartBarOverlayElement* energyCounter; 57 58 RadarOverlayElement* radar; 59 // Ogre::SceneNode* ogreNode_; 112 60 }; 113 } 61 } 114 62 115 #endif /* _HUD_H__ */63 #endif
Note: See TracChangeset
for help on using the changeset viewer.