Changeset 10018 for code/branches/turretFS14/src/modules/objects/Turret.h
- Timestamp:
- Apr 3, 2014, 2:57:05 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/turretFS14/src/modules/objects/Turret.h
r10008 r10018 40 40 41 41 #include "worldentities/pawns/SpaceShip.h" 42 #include "controllers/TurretController.h" 42 43 43 44 namespace orxonox … … 53 54 virtual void rotateRoll(const Vector2& value); 54 55 55 void setAlertnessRadius(float value);56 float getAlertnessRadius();57 58 56 virtual void XMLPort(Element& xmlelement, XMLPort::Mode mode); 59 57 virtual void tick(float dt); 60 58 59 inline void setMaxPitch(Ogre::Real pitch) 60 {this->maxPitch_ = pitch;} 61 61 62 protected: 63 WaypointPatrolController* controller_; 62 inline Ogre::Real getMaxPitch() 63 {return this->maxPitch_;} 64 65 inline void setMaxYaw(Ogre::Real yaw) 66 {this->maxYaw_ = yaw;} 67 68 inline Ogre::Real getMaxYaw() 69 {return this->maxYaw_;} 70 64 71 private: 65 72 bool gotOrient_; 66 Quaternion startOrient_; 73 Ogre::Real maxPitch_; 74 Ogre::Real maxYaw_; 75 Quaternion startOrientInv_; 76 77 Ogre::Real boundBetween(float val, float lowerBound, float upperBound); 67 78 }; 68 79 }
Note: See TracChangeset
for help on using the changeset viewer.