- Timestamp:
- Nov 25, 2008, 1:14:19 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy2/src/orxonox/overlays/OrxonoxOverlay.h
r2087 r2256 154 154 virtual void changedVisibility(); 155 155 156 inline void setOwner(ControllableEntity* owner) 157 { 158 if (this->owner_ != owner) 159 { 160 this->owner_ = owner; 161 this->changedOwner(); 162 } 163 } 164 inline ControllableEntity* getOwner() const 165 { return this->owner_; } 166 virtual void changedOwner() {} 167 156 168 protected: 157 169 virtual void angleChanged(); … … 182 194 We could also use the ObjectList, but that doesn't guarantee XMLPort(.) was called and is slower. */ 183 195 static std::map<std::string, OrxonoxOverlay*> overlays_s; 196 ControllableEntity* owner_; 184 197 }; 198 199 SUPER_FUNCTION(7, OrxonoxOverlay, changedOwner, false); 185 200 } 186 201
Note: See TracChangeset
for help on using the changeset viewer.