Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/FICN/src/orxonox/SpaceshipSteering.h @ 708

Last change on this file since 708 was 708, checked in by rgrieder, 16 years ago
  • added Vector2, Vector3, Matrix3, ColourValue, Quaternion and String to the misc folder as header files (each of them contains #include <string> … typedef std::string String , etc.)
  • please use String from now on by including <misc/String.h"
  • removed #include <OgreVector3.h", etc. from "CoreIncludes.h" (adjusted all source files)
  • adjusted all the source files (except network, that keeps <string> for the moment) (what a mess..)
  • moved usleep hack to misc/Sleep.h
  • relative include paths for files from other root directories (like misc, network, etc.) (but it stills writes "../Orxonox.h" when in folder orxonox/objects)
  • "OgreSceneManager.h" —> <OgreSceneManager.h>
  • included OrxonoxPrereqs in every file in folder orxonox
  • moved HUD and ParticleInterface to namespace orxonox
  • removed some using namespace Ogre/std when appropriate
  • I hope I haven't forgotten important points..
File size: 1.7 KB
Line 
1#ifndef _SpaceShipSteering_H__
2#define _SpaceShipSteering_H__
3
4#include "OgrePrerequisites.h"
5
6namespace 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__ */
Note: See TracBrowser for help on using the repository browser.