Changeset 1613 for code/branches/hud/src/orxonox/Radar.h
- Timestamp:
- Jun 20, 2008, 12:05:12 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hud/src/orxonox/Radar.h
r1609 r1613 38 38 39 39 #include <string> 40 #include "core/Iterator.h" 40 41 #include "core/OrxonoxClass.h" 41 42 #include "objects/Tickable.h" 43 #include "RadarViewable.h" 42 44 43 45 namespace orxonox 44 46 { 45 class _OrxonoxExport RadarListener : public OrxonoxClass47 class _OrxonoxExport RadarListener : virtual public OrxonoxClass 46 48 { 47 49 public: … … 49 51 virtual ~RadarListener() { } 50 52 51 virtual void displayObject(RadarViewable* viewable) = 0; 53 virtual void displayObject(RadarViewable* viewable, bool bIsMarked) = 0; 54 virtual void hideMarker() = 0; 52 55 virtual float getRadarSensitivity() = 0; 56 virtual void radarTick(float dt) = 0; 53 57 }; 54 58 … … 69 73 ~Radar(); 70 74 71 void unregisterObject(RadarViewable* object);72 73 void tick(float dt);75 //void unregisterObject(RadarViewable* object); 76 const RadarViewable* getFocus(); 77 RadarViewable::Shape addObjectDescription(const std::string name); 74 78 75 79 static Radar& getInstance(); 76 80 static Radar* getInstancePtr() { return instance_s; } 77 81 82 static void cycleNavigationFocus(); 83 static void releaseNavigationFocus(); 84 78 85 private: 79 86 Radar(Radar& instance); 87 void tick(float dt); 88 89 void releaseFocus(); 90 void updateFocus(); 91 void cycleFocus(); 92 93 Iterator<RadarViewable> itFocus_; 94 RadarViewable* focus_; 95 std::map<std::string, RadarViewable::Shape> objectTypes_; 96 int objectTypeCounter_; 80 97 81 98 static Radar* instance_s;
Note: See TracChangeset
for help on using the changeset viewer.