Changeset 1601 for code/branches/hud/src/orxonox/overlays/OverlayGroup.h
- Timestamp:
- Jun 14, 2008, 6:37:12 PM (16 years ago)
- File:
-
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hud/src/orxonox/overlays/OverlayGroup.h
r1600 r1601 28 28 29 29 30 #ifndef _ HUD_H__31 #define _ HUD_H__30 #ifndef _OverlayGroup_H__ 31 #define _OverlayGroup_H__ 32 32 33 33 #include "OrxonoxPrereqs.h" … … 38 38 #include "objects/Tickable.h" 39 39 #include "util/Math.h" 40 #include " OverlayElementFactories.h"40 #include "hud/OverlayElementFactories.h" 41 41 #include "tools/WindowEventListener.h" 42 42 … … 44 44 { 45 45 class HUDBar; 46 class HUDOverlay;46 class OrxonoxOverlay; 47 47 48 class _OrxonoxExport HUD: public BaseObject, public TickableReal, public WindowEventListener48 class _OrxonoxExport OverlayGroup : public BaseObject, public TickableReal, public WindowEventListener 49 49 { 50 50 public: 51 HUD();52 ~ HUD();51 OverlayGroup(); 52 ~OverlayGroup(); 53 53 54 54 virtual void XMLPort(Element& xmlElement, XMLPort::Mode mode); … … 64 64 { return this->roSet_; } 65 65 66 static HUD& getSingleton();66 static OverlayGroup& getHUD(); 67 67 68 68 static void setEnergy(float value); … … 72 72 73 73 private: 74 HUD(const HUD& instance);74 OverlayGroup(const OverlayGroup& instance); 75 75 76 void add HUDElement(HUDOverlay* element);77 HUDOverlay* getHUDElement(unsigned int index);76 void addElement(OrxonoxOverlay* element); 77 OrxonoxOverlay* getElement(unsigned int index); 78 78 79 79 void windowResized(int newWidth, int newHeight); 80 80 81 std::map<std::string, HUDOverlay*> hudElements_;81 std::map<std::string, OrxonoxOverlay*> hudElements_; 82 82 83 83 std::list<RadarObject*> roSet_; … … 92 92 BarOverlayElement* speedoBar_; 93 93 RadarOverlayElement* radar_; 94 Navigation* nav_;94 HUDNavigation* nav_; 95 95 96 96 bool showFPS_; 97 97 bool showRenderTime_; 98 98 99 static HUD* instance_s;99 static OverlayGroup* hudInstance_s; 100 100 }; 101 101 } 102 102 103 #endif /* _ HUD_H__ */103 #endif /* _OverlayGroup_H__ */
Note: See TracChangeset
for help on using the changeset viewer.