Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
May 3, 2010, 5:03:05 PM (14 years ago)
Author:
scurcio
Message:

update hudnavigation /addObject, removeObject

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/hudelements/src/modules/overlays/hud/HUDNavigation.h

    r6796 r6849  
    3030#define _HUDNavigation_H__
    3131
     32#include <utility>
     33#include <map>
    3234#include "overlays/OverlaysPrereqs.h"
    3335
     36#include "interfaces/RadarListener.h"
    3437#include "util/OgreForwardRefs.h"
    3538#include "tools/interfaces/Tickable.h"
     
    4144namespace orxonox
    4245{
    43 class WorldEntity;
    44     class _OverlaysExport HUDNavigation : public OrxonoxOverlay, public Tickable
     46    class _OverlaysExport HUDNavigation : public OrxonoxOverlay, public Tickable, public RadarListener
    4547    {
    4648    public:
     
    5052        virtual void XMLPort(Element& xmlElement, XMLPort::Mode mode);
    5153        virtual void tick(float dt);
    52        
    53         virtual map <WorldEntity*, pair <Ogre::PanelOverlayElement*, Ogre::TextAreaOverlayElement*> > ActiveObjectList;
    54        
     54        virtual void addObject(RadarViewable* object);
     55         
     56        virtual void removeObject(RadarViewable* viewable);
     57         virtual void objectChanged(RadarViewable* viewable){}
     58         inline float getRadarSensitivity() const{}
     59         inline void radarTick(float dt) {}
    5560
    5661    private:
     
    6368
    6469        // XMLPort accessors
    65         void setNavMarkerSize(float size) { this->navMarkerSize_ = size; this->sizeChanged(); }
     70        void setNavMarkerSize(float size) { this->navMarkerSize_ = size; this->sizeChanged(); } 
    6671        float getNavMarkerSize() const    { return this->navMarkerSize_; }
    6772
     
    9499        bool wasOutOfView_;                         //!< Performance booster variable: setMaterial is not cheap
    95100       
     101        std::map<RadarViewable*, std::pair<Ogre::PanelOverlayElement*, Ogre::TextAreaOverlayElement*> > activeObjectList_;
    96102       
    97103    };
     104   
    98105}
    99106
Note: See TracChangeset for help on using the changeset viewer.