Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 14, 2008, 6:37:12 PM (16 years ago)
Author:
rgrieder
Message:
  • new folder structure for overlays:

orxonox/


overlays/

console/
hud/

  • Navigation —> HUDNavigation
  • HUD —> OverlayGroup (not yet begun with that except renaming and getHUD() instead of getSingleton())
  • moved HUD.oxo (file ending should stand for orxonox overlay) to media repository in overlay folder
  • fixed a bug with console noiseSize_ config value (was inverted..)
File:
1 moved

Legend:

Unmodified
Added
Removed
  • code/branches/hud/src/orxonox/overlays/OverlayGroup.h

    r1600 r1601  
    2828
    2929
    30 #ifndef _HUD_H__
    31 #define _HUD_H__
     30#ifndef _OverlayGroup_H__
     31#define _OverlayGroup_H__
    3232
    3333#include "OrxonoxPrereqs.h"
     
    3838#include "objects/Tickable.h"
    3939#include "util/Math.h"
    40 #include "OverlayElementFactories.h"
     40#include "hud/OverlayElementFactories.h"
    4141#include "tools/WindowEventListener.h"
    4242
     
    4444{
    4545    class HUDBar;
    46     class HUDOverlay;
     46    class OrxonoxOverlay;
    4747
    48     class _OrxonoxExport HUD : public BaseObject, public TickableReal, public WindowEventListener
     48    class _OrxonoxExport OverlayGroup : public BaseObject, public TickableReal, public WindowEventListener
    4949    {
    5050      public:
    51         HUD();
    52         ~HUD();
     51        OverlayGroup();
     52        ~OverlayGroup();
    5353
    5454        virtual void XMLPort(Element& xmlElement, XMLPort::Mode mode);
     
    6464            { return this->roSet_; }
    6565
    66         static HUD& getSingleton();
     66        static OverlayGroup& getHUD();
    6767
    6868        static void setEnergy(float value);
     
    7272
    7373      private:
    74         HUD(const HUD& instance);
     74        OverlayGroup(const OverlayGroup& instance);
    7575
    76         void addHUDElement(HUDOverlay* element);
    77         HUDOverlay* getHUDElement(unsigned int index);
     76        void addElement(OrxonoxOverlay* element);
     77        OrxonoxOverlay* getElement(unsigned int index);
    7878
    7979        void windowResized(int newWidth, int newHeight);
    8080
    81         std::map<std::string, HUDOverlay*> hudElements_;
     81        std::map<std::string, OrxonoxOverlay*> hudElements_;
    8282
    8383        std::list<RadarObject*> roSet_;
     
    9292        BarOverlayElement* speedoBar_;
    9393        RadarOverlayElement* radar_;
    94         Navigation* nav_;
     94        HUDNavigation* nav_;
    9595
    9696        bool showFPS_;
    9797        bool showRenderTime_;
    9898
    99         static HUD* instance_s;
     99        static OverlayGroup* hudInstance_s;
    100100    };
    101101}
    102102
    103 #endif /* _HUD_H__ */
     103#endif /* _OverlayGroup_H__ */
Note: See TracChangeset for help on using the changeset viewer.