1 | #ifndef SPACESHIP_STEERING_H |
---|
2 | #define SPACESHIP_STEERING_H |
---|
3 | |
---|
4 | #include "OgrePrerequisites.h" |
---|
5 | |
---|
6 | |
---|
7 | class SpaceshipSteering |
---|
8 | { |
---|
9 | public: |
---|
10 | SpaceshipSteering(float maxSpeedForward, float maxSpeedRotateUpDown, |
---|
11 | float maxSpeedRotateRightLeft, float maxSpeedLoopRightLeft); |
---|
12 | void tick(float time); |
---|
13 | void moveForward(float moveForward); |
---|
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 brakeForward(float brakeForward); |
---|
21 | void brakeRotate(float brakeRotate); |
---|
22 | void brakeLoop(float brakeLoop); |
---|
23 | void maxSpeedForward(float maxSpeedForward); |
---|
24 | void maxSpeedRotateUpDown(float maxSpeedRotateUpDown); |
---|
25 | void maxSpeedRotateRightLeft(float maxSpeedRotateRightLeft); |
---|
26 | void maxSpeedLoopRightLeft(float maxSpeedLoopRightLeft); |
---|
27 | void addNode(Ogre::SceneNode *steeringNode); |
---|
28 | |
---|
29 | protected: |
---|
30 | Ogre::SceneNode *steeringNode_; |
---|
31 | |
---|
32 | private: |
---|
33 | float moveForward_; |
---|
34 | float rotateUp_; |
---|
35 | float rotateDown_; |
---|
36 | float rotateRight_; |
---|
37 | float rotateLeft_; |
---|
38 | float loopRight_; |
---|
39 | float loopLeft_; |
---|
40 | float brakeForward_; |
---|
41 | float brakeRotate_; |
---|
42 | float brakeLoop_; |
---|
43 | |
---|
44 | float speedForward_; |
---|
45 | float speedRotateUpDown_; |
---|
46 | float speedRotateRightLeft_; |
---|
47 | float speedLoopRightLeft_; |
---|
48 | |
---|
49 | float maxSpeedForward_; |
---|
50 | float maxSpeedRotateUpDown_; |
---|
51 | float maxSpeedRotateRightLeft_; |
---|
52 | float maxSpeedLoopRightLeft_; |
---|
53 | |
---|
54 | float accelerationForward_; |
---|
55 | float accelerationRotateUpDown_; |
---|
56 | float accelerationRotateRightLeft_; |
---|
57 | float accelerationLoopRightLeft_; |
---|
58 | |
---|
59 | }; |
---|
60 | |
---|
61 | |
---|
62 | #endif |
---|