Changeset 10039 for code/branches/turretFS14/src/modules/objects/Turret.h
- Timestamp:
- Apr 17, 2014, 4:05:06 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/turretFS14/src/modules/objects/Turret.h
r10031 r10039 54 54 virtual void tick(float dt); 55 55 56 virtual bool isInRange(Vector3 position);57 58 inline void setMaxPitch(Ogre::Real pitch)59 {this->maxPitch_ = pitch;}60 61 inline Ogre::Real getMaxPitch()62 {return this->maxPitch_;}63 64 inline void setMaxYaw(Ogre::Real yaw)65 {this->maxYaw_ = yaw;}66 67 inline Ogre::Real getMaxYaw()68 {return this->maxYaw_;}69 70 inline void setAttackRadius(float radius)71 {this->attackRadius_ = radius;}72 73 inline float getAttackRadius()74 {return this->attackRadius_;}75 76 56 77 57 private: 78 bool gotOrient_;79 Ogre::Real maxPitch_;80 Ogre::Real maxYaw_;81 float attackRadius_;82 Quaternion startOrient_;83 Vector3 startDir_;84 Vector3 localZ_;85 Vector3 localY_;86 Vector3 localX_;87 58 float rotationThrust_; 88 59 … … 92 63 93 64 #endif 94
Note: See TracChangeset
for help on using the changeset viewer.