Changeset 6057 for code/trunk/src/orxonox/overlays/OrxonoxOverlay.h
- Timestamp:
- Nov 13, 2009, 11:31:30 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk/src/orxonox/overlays/OrxonoxOverlay.h
r6056 r6057 43 43 #include "core/BaseObject.h" 44 44 #include "core/WindowEventListener.h" 45 #include "OverlayGroup.h"46 45 47 46 namespace orxonox … … 170 169 virtual void changedOwner() {} 171 170 172 inline void setOverlayGroup(OverlayGroup* group) 173 { 174 if (group != this->group_) 175 { 176 if(this->group_) 177 this->group_->removeElement(this); 178 this->group_ = group; 179 this->changedOverlayGroup(); 180 } 181 } 171 void setOverlayGroup(OverlayGroup* group); 182 172 inline OverlayGroup* getOverlayGroup() const 183 173 { return this->group_; }
Note: See TracChangeset
for help on using the changeset viewer.