Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/FICN/src/orxonox/objects/SpaceShip.h @ 647

Last change on this file since 647 was 647, checked in by landauf, 17 years ago

good morning everybody!
did some changes in the steering of SpaceShip

File size: 3.6 KB
Line 
1#ifndef _SpaceShip_H__
2#define _SpaceShip_H__
3
4#include <OIS/OIS.h>
5
6#include "Model.h"
7#include "BillboardSet.h"
8#include "OgreSceneNode.h"
9
10#include "../../tinyxml/tinyxml.h"
11#include "../particle/ParticleInterface.h"
12
13namespace orxonox
14{
15    class SpaceShip : public Model, public OIS::MouseListener
16    {
17        public:
18            SpaceShip();
19            ~SpaceShip();
20            virtual void loadParams(TiXmlElement* xmlElem);
21            virtual void tick(float dt);
22/*
23            void moveForward(float moveForward);
24            void rotateUp(float rotateUp);
25            void rotateDown(float rotateDown);
26            void rotateRight(float rotateRight);
27            void rotateLeft(float rotateLeft);
28            void loopRight(float loopRight);
29            void loopLeft(float loopLeft);
30            void brakeForward(float brakeForward);
31            void brakeRotate(float brakeRotate);
32            void brakeLoop(float brakeLoop);
33            void maxSpeedForward(float maxSpeedForward);
34            void maxSpeedRotateUpDown(float maxSpeedRotateUpDown);
35            void maxSpeedRotateRightLeft(float maxSpeedRotateRightLeft);
36            void maxSpeedLoopRightLeft(float maxSpeedLoopRightLeft);
37*/
38            bool mouseMoved(const OIS::MouseEvent &e);
39            bool mousePressed(const OIS::MouseEvent &e, OIS::MouseButtonID id);
40            bool mouseReleased(const OIS::MouseEvent &e, OIS::MouseButtonID id);
41
42
43        private:
44            bool bInvertYAxis_;
45            bool setMouseEventCallback_;
46            bool bLMousePressed_;
47            bool bRMousePressed_;
48
49            Ogre::SceneNode* camNode_;
50
51            particle::ParticleInterface* tt_;
52
53            BillboardSet redBillboard_;
54            BillboardSet greenBillboard_;
55            Ogre::SceneNode* redNode_;
56            Ogre::SceneNode* greenNode_;
57            float blinkTime_;
58
59            float timeToReload_;
60            float reloadTime_;
61
62            float maxSideAndBackSpeed_;
63            float maxSpeed_;
64            float maxRotation_;
65            float translationAcceleration_;
66            float rotationAcceleration_;
67            float translationDamping_;
68            float rotationDamping_;
69
70            Radian maxRotationRadian_;
71            Radian rotationAccelerationRadian_;
72            Radian rotationDampingRadian_;
73            Radian zeroRadian_;
74            Radian mouseXRotation_;
75            Radian mouseYRotation_;
76
77            float mouseX_;
78            float mouseY_;
79
80/*
81            float moveForward_;
82            float rotateUp_;
83            float rotateDown_;
84            float rotateRight_;
85            float rotateLeft_;
86            float loopRight_;
87            float loopLeft_;
88            float brakeForward_;
89            float brakeRotate_;
90            float brakeLoop_;
91
92            float speedForward_;
93            float speedRotateUpDown_;
94            float speedRotateRightLeft_;
95            float speedLoopRightLeft_;
96
97            float maxSpeedForward_;
98            float maxSpeedRotateUpDown_;
99            float maxSpeedRotateRightLeft_;
100            float maxSpeedLoopRightLeft_;
101
102            float accelerationForward_;
103            float accelerationRotateUpDown_;
104            float accelerationRotateRightLeft_;
105            float accelerationLoopRightLeft_;
106
107            float speed;
108            float rotate;
109            float loop;
110            float mouseY;
111            float mouseX;
112            float maxMouseX;
113            float minMouseX;
114            bool moved;
115*/
116            int emitterRate_;
117    };
118}
119
120#endif
Note: See TracBrowser for help on using the repository browser.