Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/network/src/asylum/orxonox/SpaceshipSteering.h @ 1494

Last change on this file since 1494 was 1494, checked in by rgrieder, 16 years ago
  • set the svn:eol-style property to all files so, that where ever you check out, you'll get the right line endings (had to change every file with mixed endings to windows in order to set the property)
  • Property svn:eol-style set to native
File size: 1.7 KB
Line 
1#ifndef _SpaceShipSteering_H__
2#define _SpaceShipSteering_H__
3
4#include <OgrePrerequisites.h>
5
6#include "OrxonoxPrereqs.h"
7
8namespace orxonox
9{
10  class _OrxonoxExport SpaceshipSteering
11  {
12  public:
13    SpaceshipSteering(float maxSpeedForward, float maxSpeedRotateUpDown,
14      float maxSpeedRotateRightLeft, float maxSpeedLoopRightLeft);
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
62  };
63}
64
65
66#endif /* _SpaceShipSteering_H__ */
Note: See TracBrowser for help on using the repository browser.