Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: code/branches/FICN/src/orxonox/objects/Fighter.h @ 645

Last change on this file since 645 was 645, checked in by rgrieder, 16 years ago
  • weapon system up and running
File size: 3.0 KB
Line 
1#ifndef _Fighter_H__
2#define _Fighter_H__
3
4#include "../OrxonoxPrereqs.h"
5
6#include <OIS/OIS.h>
7#include <string.h>
8
9#include "Model.h"
10#include "../../tinyxml/tinyxml.h"
11#include "../particle/ParticleInterface.h"
12
13namespace orxonox
14{
15    class Fighter : public Model, public OIS::MouseListener
16    {
17        public:
18            Fighter();
19            ~Fighter();
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; }
39            bool mouseReleased(const OIS::MouseEvent &e, OIS::MouseButtonID id);// { return true; }
40
41
42        private:
43            bool bInvertMouse_;
44            bool setMouseEventCallback_;
45
46            particle::ParticleInterface *w;
47            particle::ParticleInterface *tt;
48
49            AmmunitionDump* ammoDump_;
50            BarrelGun* mainWeapon_;
51
52            bool leftButtonPressed_;
53            bool rightButtonPressed_;
54
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    };
92}
93
94#endif
Note: See TracBrowser for help on using the repository browser.