Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/trunk/src/orxonox/objects/Fighter.h @ 790

Last change on this file since 790 was 790, checked in by nicolasc, 16 years ago

merged FICN back into trunk
awaiting release.

File size: 3.1 KB
RevLine 
[637]1#ifndef _Fighter_H__
2#define _Fighter_H__
3
[708]4#include <OIS/OIS.h>
5
[637]6#include "../OrxonoxPrereqs.h"
7
8#include "Model.h"
9
[708]10class TiXmlElement; // Forward declaration
11
[637]12namespace orxonox
13{
[729]14    class _OrxonoxExport Fighter : public Model, public OIS::MouseListener
[637]15    {
16        public:
17            Fighter();
18            ~Fighter();
[697]19            void setConfigValues();
[637]20            virtual void loadParams(TiXmlElement* xmlElem);
21            void setMaxSpeedValues(float maxSpeedForward, float maxSpeedRotateUpDown, float maxSpeedRotateRightLeft, float maxSpeedLoopRightLeft);
22            virtual void tick(float dt);
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            bool mouseMoved(const OIS::MouseEvent &e);
38            bool mousePressed(const OIS::MouseEvent &e, OIS::MouseButtonID id);// { return true; }
[645]39            bool mouseReleased(const OIS::MouseEvent &e, OIS::MouseButtonID id);// { return true; }
[637]40
41
42        private:
43            bool bInvertMouse_;
44            bool setMouseEventCallback_;
45
[708]46            ParticleInterface *w;
47            ParticleInterface *tt;
[637]48
49            AmmunitionDump* ammoDump_;
50            BarrelGun* mainWeapon_;
51
[645]52            bool leftButtonPressed_;
53            bool rightButtonPressed_;
54
[637]55            float moveForward_;
56            float rotateUp_;
57            float rotateDown_;
58            float rotateRight_;
59            float rotateLeft_;
60            float loopRight_;
61            float loopLeft_;
62            float brakeForward_;
63            float brakeRotate_;
64            float brakeLoop_;
65
66            float speedForward_;
67            float speedRotateUpDown_;
68            float speedRotateRightLeft_;
69            float speedLoopRightLeft_;
70
71            float maxSpeedForward_;
72            float maxSpeedRotateUpDown_;
73            float maxSpeedRotateRightLeft_;
74            float maxSpeedLoopRightLeft_;
75
76            float accelerationForward_;
77            float accelerationRotateUpDown_;
78            float accelerationRotateRightLeft_;
79            float accelerationLoopRightLeft_;
80
81            float speed;
82            float rotate;
83            float loop;
84            float mouseY;
85            float mouseX;
86            float maxMouseX;
87            float minMouseX;
88            bool moved;
89
90            int emitterRate_;
91    };
[729]92    ExportClass(Fighter, Orxonox);
[637]93}
94
[673]95#endif /* _Fighter_H__ */
Note: See TracBrowser for help on using the repository browser.