[209] | 1 | #ifndef SPACESHIP_STEERING_H |
---|
| 2 | #define SPACESHIP_STEERING_H |
---|
| 3 | |
---|
| 4 | #include "OgrePrerequisites.h" |
---|
| 5 | |
---|
| 6 | class SpaceshipSteering |
---|
| 7 | { |
---|
| 8 | public: |
---|
| 9 | SpaceshipSteering(float maxSpeedForward, float maxSpeedRotateUpDown, |
---|
| 10 | float maxSpeedRotateRightLeft, float maxSpeedLoopRightLeft); |
---|
| 11 | void tick(float time); |
---|
| 12 | void moveForward(float moveForward); |
---|
| 13 | void brake(float brake); |
---|
| 14 | void rotateUp(float rotateUp); |
---|
| 15 | void rotateDown(float rotateDown); |
---|
| 16 | void rotateRight(float rotateRight); |
---|
| 17 | void rotateLeft(float rotateLeft); |
---|
| 18 | void loopRight(float loopRight); |
---|
| 19 | void loopLeft(float loopLeft); |
---|
| 20 | void maxSpeedForward(float maxSpeedForward); |
---|
| 21 | void maxSpeedRotateUpDown(float maxSpeedRotateUpDown); |
---|
| 22 | void maxSpeedRotateRightLeft(float maxSpeedRotateRightLeft); |
---|
| 23 | void maxSpeedLoopRightLeft(float maxSpeedLoopRightLeft); |
---|
| 24 | void addNode(Ogre::SceneNode *steeringNode); |
---|
| 25 | |
---|
| 26 | protected: |
---|
| 27 | Ogre::SceneNode *steeringNode_; |
---|
| 28 | |
---|
| 29 | private: |
---|
| 30 | float moveForward_; |
---|
| 31 | float brake_; |
---|
| 32 | float rotateUp_; |
---|
| 33 | float rotateDown_; |
---|
| 34 | float rotateRight_; |
---|
| 35 | float rotateLeft_; |
---|
| 36 | float loopRight_; |
---|
| 37 | float loopLeft_; |
---|
| 38 | |
---|
| 39 | float speedForward_; |
---|
| 40 | float speedRotateUpDown_; |
---|
| 41 | float speedRotateRightLeft_; |
---|
| 42 | float speedLoopRightLeft_; |
---|
| 43 | |
---|
| 44 | float maxSpeedForward_; |
---|
| 45 | float maxSpeedRotateUpDown_; |
---|
| 46 | float maxSpeedRotateRightLeft_; |
---|
| 47 | float maxSpeedLoopRightLeft_; |
---|
| 48 | |
---|
| 49 | float accelerationForward_; |
---|
| 50 | float accelerationRotateUpDown_; |
---|
| 51 | float accelerationRotateRightLeft_; |
---|
| 52 | float accelerationLoopRightLeft_; |
---|
| 53 | |
---|
| 54 | }; |
---|
| 55 | |
---|
| 56 | #endif |
---|