- Timestamp:
- Dec 10, 2008, 3:37:48 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/objecthierarchy2/src/orxonox/overlays/OrxonoxOverlay.h
r2256 r2369 125 125 126 126 //! Gets the rotation angle applied to this overlay in degrees. 127 const Radian& getRotation() const { return this->angle_; }127 const Degree& getRotation() const { return this->angle_; } 128 128 129 129 //! Rotates the overlay by angle degrees. … … 166 166 virtual void changedOwner() {} 167 167 168 inline void setOverlayGroup(OverlayGroup* group) 169 { 170 if (group != this->group_) 171 { 172 this->group_ = group; 173 this->changedOverlayGroup(); 174 } 175 } 176 inline OverlayGroup* getOverlayGroup() const 177 { return this->group_; } 178 virtual void changedOverlayGroup() {} 179 168 180 protected: 169 181 virtual void angleChanged(); … … 184 196 Vector2 position_; //!< Position of the pickPoint on the screen. 185 197 Vector2 pickPoint_; //!< Point on the overlay to pick when translating 186 Radianangle_; //!< Rotation angle of the overlay198 Degree angle_; //!< Rotation angle of the overlay 187 199 RotationState rotState_; //!< horizontal, vertical or inbetween 188 200 … … 195 207 static std::map<std::string, OrxonoxOverlay*> overlays_s; 196 208 ControllableEntity* owner_; 209 OverlayGroup* group_; 197 210 }; 198 211 199 212 SUPER_FUNCTION(7, OrxonoxOverlay, changedOwner, false); 213 SUPER_FUNCTION(8, OrxonoxOverlay, changedOverlayGroup, false); 200 214 } 201 215
Note: See TracChangeset
for help on using the changeset viewer.