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