Changeset 8993 in orxonox.OLD for trunk/src/world_entities/elements/glgui_radar.h
- Timestamp:
- Jul 2, 2006, 5:30:14 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/world_entities/elements/glgui_radar.h
r8992 r8993 9 9 #include "glgui_widget.h" 10 10 11 class PNode; 11 12 class WorldEntity; 12 13 … … 27 28 virtual ~GLGuiRadar(); 28 29 30 void addEntityList(const std::list<WorldEntity*>* entityList, const Color& color); 31 void removeEntityList(const std::list<WorldEntity*>* entityList); 32 29 33 void setRange(float range); 30 34 35 void setCenterNode(const PNode* center); 31 36 void setUpdateInterval(float updateInterval) { this->_updateInterval = updateInterval; }; 32 37 void setAttenuation(Attenuation attenuation); 33 38 39 34 40 float range() const { return this->_range; } 35 41 42 void updateRadar(); 36 43 37 44 void tick(float dt); … … 44 51 45 52 private: 53 void init(); 54 55 private: 46 56 typedef struct 47 57 { 48 58 Color dotColor; 49 const std::list<WorldEntity*> &entityList;50 std::vector<Vector2D> position ;59 const std::list<WorldEntity*>* entityList; 60 std::vector<Vector2D> positions; 51 61 } 52 62 DotList; 53 63 54 std::vector<DotList> _dotLists; 64 const PNode* _centerNode; 65 std::vector<DotList> _dotLists; 55 66 56 Attenuation _attenuation;57 float _range;67 Attenuation _attenuation; 68 float _range; 58 69 59 70 60 float _updateInterval;61 float _timePassed;71 float _updateInterval; 72 float _timePassed; 62 73 }; 63 74 }
Note: See TracChangeset
for help on using the changeset viewer.