- Timestamp:
- Apr 14, 2010, 7:54:41 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/hudelements/src/orxonox/interfaces/RadarViewable.h
r6717 r6727 40 40 namespace orxonox 41 41 { 42 class BaseObject; 43 42 44 /** 43 45 @brief Interface for receiving window events. … … 55 57 56 58 public: 57 RadarViewable( );59 RadarViewable(BaseObject* creator); 58 60 virtual ~RadarViewable(); 59 61 60 62 inline void setRadarObjectCamouflage(float camouflage) 61 { this->radarObjectCamouflage_ = camouflage; } 63 { 64 if( this->radarObjectCamouflage_ != camouflage ) 65 { 66 this->radarObjectCamouflage_ = camouflage; 67 this->settingsChanged(); 68 } 69 } 62 70 inline float getRadarObjectCamouflage() const 63 71 { return this->radarObjectCamouflage_; } 64 72 65 73 inline void setRadarObjectColour(const ColourValue& colour) 66 { this->radarObjectColour_ = colour; } 74 { 75 if(this->radarObjectColour_ != colour) 76 { 77 this->radarObjectColour_ = colour; 78 this->settingsChanged(); 79 } 80 } 67 81 inline const ColourValue& getRadarObjectColour() const 68 82 { return this->radarObjectColour_; } 69 83 70 void setRadarObjectDescription(const std::string& str);71 inline const std::string& getRadarObjectDescription() const72 { return this->radarObjectDescription_; }84 // void setRadarObjectDescription(const std::string& str); 85 // inline const std::string& getRadarObjectDescription() const 86 // { return this->radarObjectDescription_; } 73 87 74 88 inline void setRadarVisibility(bool b) 75 { this->bVisibility_ = b; } 89 { 90 if(b!=this->bVisibility_) 91 { 92 this->bVisibility_ = b; 93 this->settingsChanged(); 94 } 95 } 76 96 inline bool getRadarVisibility() const 77 97 { return this->bVisibility_; } … … 83 103 84 104 inline void setRadarObjectShape(Shape shape) 85 { this->radarObjectShape_ = shape; } 105 { 106 if( this->radarObjectShape_ != shape ) 107 { 108 this->radarObjectShape_ = shape; 109 this->settingsChanged(); 110 } 111 } 86 112 inline Shape getRadarObjectShape() const 87 113 { return this->radarObjectShape_; } 114 void settingsChanged(); 88 115 89 116 … … 98 125 void validate(const WorldEntity* object) const; 99 126 bool bVisibility_; 127 bool bInitialized_; 100 128 //Map 101 129 std::string uniqueId_; 130 BaseObject* creator_; 102 131 103 132
Note: See TracChangeset
for help on using the changeset viewer.