Changeset 1410 for code/branches/network/src/orxonox/hud/HUD.h
- Timestamp:
- May 24, 2008, 3:38:39 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/network/src/orxonox/hud/HUD.h
r1406 r1410 30 30 #define _HUD_H__ 31 31 32 #include "OrxonoxPrereqs.h" 33 32 34 #include <OgrePrerequisites.h> 33 35 #include <OgreTextAreaOverlayElement.h> 34 #include "OrxonoxPrereqs.h"35 36 #include "core/Tickable.h" 36 #include "BarOverlayElement.h" 37 #include "RadarOverlayElement.h" 38 #include "Navigation.h" 39 #include "RadarObject.h" 40 37 #include "util/Math.h" 41 38 42 39 namespace orxonox … … 44 41 class _OrxonoxExport HUD : public Tickable 45 42 { 46 47 48 49 50 51 52 53 54 55 56 57 58 59 43 private: 44 HUD(); 45 HUD(HUD& instance); 46 ~HUD(); 47 Ogre::OverlayManager* om; 48 Ogre::Overlay* orxonoxHUD; 49 Ogre::OverlayContainer* container; 50 Ogre::TextAreaOverlayElement* fpsText; 51 BarOverlayElement* energyBar; 52 BarOverlayElement* speedoBar; 53 RadarOverlayElement* radar; 54 RadarObject* firstRadarObject; 55 RadarObject* lastRadarObject; 56 Navigation* nav; 60 57 61 62 63 64 58 public: 59 virtual void tick(float); 60 void addRadarObject(Vector3 pos); 61 RadarObject* getFirstRadarObject(); 65 62 66 67 68 69 70 63 static HUD* instance_s; 64 static HUD& getSingleton(); 65 static void setFPS(float fps); 66 static void setEnergy(float value); 67 static void cycleNavigationFocus(); 71 68 }; 72 69 } 73 70 74 #endif 71 #endif /* _HUD_H__ */
Note: See TracChangeset
for help on using the changeset viewer.