[673] | 1 | #ifndef _SpaceShipSteering_H__ |
---|
| 2 | #define _SpaceShipSteering_H__ |
---|
[612] | 3 | |
---|
[729] | 4 | #include <OgrePrerequisites.h> |
---|
[612] | 5 | |
---|
[729] | 6 | #include "OrxonoxPrereqs.h" |
---|
| 7 | |
---|
[708] | 8 | namespace orxonox |
---|
[612] | 9 | { |
---|
[729] | 10 | class _OrxonoxExport SpaceshipSteering |
---|
[708] | 11 | { |
---|
[612] | 12 | public: |
---|
| 13 | SpaceshipSteering(float maxSpeedForward, float maxSpeedRotateUpDown, |
---|
[708] | 14 | float maxSpeedRotateRightLeft, float maxSpeedLoopRightLeft); |
---|
[612] | 15 | void tick(float time); |
---|
| 16 | void moveForward(float moveForward); |
---|
| 17 | void rotateUp(float rotateUp); |
---|
| 18 | void rotateDown(float rotateDown); |
---|
| 19 | void rotateRight(float rotateRight); |
---|
| 20 | void rotateLeft(float rotateLeft); |
---|
| 21 | void loopRight(float loopRight); |
---|
| 22 | void loopLeft(float loopLeft); |
---|
| 23 | void brakeForward(float brakeForward); |
---|
| 24 | void brakeRotate(float brakeRotate); |
---|
| 25 | void brakeLoop(float brakeLoop); |
---|
| 26 | void maxSpeedForward(float maxSpeedForward); |
---|
| 27 | void maxSpeedRotateUpDown(float maxSpeedRotateUpDown); |
---|
| 28 | void maxSpeedRotateRightLeft(float maxSpeedRotateRightLeft); |
---|
| 29 | void maxSpeedLoopRightLeft(float maxSpeedLoopRightLeft); |
---|
| 30 | void addNode(Ogre::SceneNode *steeringNode); |
---|
| 31 | |
---|
| 32 | protected: |
---|
| 33 | Ogre::SceneNode *steeringNode_; |
---|
| 34 | |
---|
| 35 | private: |
---|
| 36 | float moveForward_; |
---|
| 37 | float rotateUp_; |
---|
| 38 | float rotateDown_; |
---|
| 39 | float rotateRight_; |
---|
| 40 | float rotateLeft_; |
---|
| 41 | float loopRight_; |
---|
| 42 | float loopLeft_; |
---|
| 43 | float brakeForward_; |
---|
| 44 | float brakeRotate_; |
---|
| 45 | float brakeLoop_; |
---|
| 46 | |
---|
| 47 | float speedForward_; |
---|
| 48 | float speedRotateUpDown_; |
---|
| 49 | float speedRotateRightLeft_; |
---|
| 50 | float speedLoopRightLeft_; |
---|
| 51 | |
---|
| 52 | float maxSpeedForward_; |
---|
| 53 | float maxSpeedRotateUpDown_; |
---|
| 54 | float maxSpeedRotateRightLeft_; |
---|
| 55 | float maxSpeedLoopRightLeft_; |
---|
| 56 | |
---|
| 57 | float accelerationForward_; |
---|
| 58 | float accelerationRotateUpDown_; |
---|
| 59 | float accelerationRotateRightLeft_; |
---|
| 60 | float accelerationLoopRightLeft_; |
---|
| 61 | |
---|
[708] | 62 | }; |
---|
| 63 | } |
---|
[612] | 64 | |
---|
| 65 | |
---|
[673] | 66 | #endif /* _SpaceShipSteering_H__ */ |
---|