- Timestamp:
- Jul 2, 2006, 5:00:49 AM (18 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/event/event_handler.cc
r8894 r8992 357 357 else 358 358 { 359 //SDL_WM_GrabInput(SDL_GRAB_ON);360 //SDL_ShowCursor(SDL_DISABLE);359 SDL_WM_GrabInput(SDL_GRAB_ON); 360 SDL_ShowCursor(SDL_DISABLE); 361 361 } 362 362 } -
trunk/src/world_entities/elements/glgui_radar.cc
r8991 r8992 36 36 37 37 38 39 void GLGuiRadar::setAttenuation(Attenuation attenuation) 40 { 41 this->_attenuation = attenuation; 42 } 43 44 45 void GLGuiRadar::tick(float dt) 46 { 47 48 } 49 50 51 void GLGuiRadar::draw() const 52 { 53 54 55 } 56 57 38 58 void GLGuiRadar::resize() 39 59 { -
trunk/src/world_entities/elements/glgui_radar.h
r8991 r8992 17 17 class GLGuiRadar : public GLGuiWidget 18 18 { 19 public: 20 typedef enum { 21 Linear, 22 Exponential, 23 } Attenuation; 19 24 20 25 public: … … 23 28 24 29 void setRange(float range); 30 31 void setUpdateInterval(float updateInterval) { this->_updateInterval = updateInterval; }; 32 void setAttenuation(Attenuation attenuation); 33 25 34 float range() const { return this->_range; } 35 36 37 void tick(float dt); 38 void draw() const; 26 39 27 40 protected: … … 33 46 typedef struct 34 47 { 35 36 Color dotColor;37 std:: list<WorldEntity*>& entityList;38 std::vector<Vector2D> position;39 }DotList;48 Color dotColor; 49 const std::list<WorldEntity*>& entityList; 50 std::vector<Vector2D> position; 51 } 52 DotList; 40 53 41 54 std::vector<DotList> _dotLists; 42 55 56 Attenuation _attenuation; 43 57 float _range; 44 58 59 60 float _updateInterval; 61 float _timePassed; 45 62 }; 46 63 }
Note: See TracChangeset
for help on using the changeset viewer.