1 | #ifndef _SpaceShip_H__ |
---|
2 | #define _SpaceShip_H__ |
---|
3 | |
---|
4 | #include <OgrePrerequisites.h> |
---|
5 | #include <OIS/OISMouse.h> |
---|
6 | |
---|
7 | #include "../OrxonoxPrereqs.h" |
---|
8 | |
---|
9 | #include "Model.h" |
---|
10 | #include "../tools/BillboardSet.h" |
---|
11 | |
---|
12 | class TiXmlElement; // Forward declaration |
---|
13 | |
---|
14 | namespace orxonox |
---|
15 | { |
---|
16 | class ParticleInterface; // Forward declaration |
---|
17 | |
---|
18 | class _OrxonoxExport SpaceShip : public Model, public OIS::MouseListener |
---|
19 | { |
---|
20 | public: |
---|
21 | SpaceShip(); |
---|
22 | ~SpaceShip(); |
---|
23 | void setConfigValues(); |
---|
24 | virtual void loadParams(TiXmlElement* xmlElem); |
---|
25 | virtual void tick(float dt); |
---|
26 | |
---|
27 | bool mouseMoved(const OIS::MouseEvent &e); |
---|
28 | bool mousePressed(const OIS::MouseEvent &e, OIS::MouseButtonID id); |
---|
29 | bool mouseReleased(const OIS::MouseEvent &e, OIS::MouseButtonID id); |
---|
30 | |
---|
31 | |
---|
32 | private: |
---|
33 | Vector3 testvector_; |
---|
34 | bool bInvertYAxis_; |
---|
35 | bool setMouseEventCallback_; |
---|
36 | bool bLMousePressed_; |
---|
37 | bool bRMousePressed_; |
---|
38 | |
---|
39 | Ogre::SceneNode* camNode_; |
---|
40 | |
---|
41 | ParticleInterface* tt_; |
---|
42 | |
---|
43 | BillboardSet redBillboard_; |
---|
44 | BillboardSet greenBillboard_; |
---|
45 | Ogre::SceneNode* redNode_; |
---|
46 | Ogre::SceneNode* greenNode_; |
---|
47 | float blinkTime_; |
---|
48 | |
---|
49 | BillboardSet crosshairNear_; |
---|
50 | BillboardSet crosshairFar_; |
---|
51 | Ogre::SceneNode* chNearNode_; |
---|
52 | Ogre::SceneNode* chFarNode_; |
---|
53 | |
---|
54 | float timeToReload_; |
---|
55 | float reloadTime_; |
---|
56 | |
---|
57 | float maxSideAndBackSpeed_; |
---|
58 | float maxSpeed_; |
---|
59 | float maxRotation_; |
---|
60 | float translationAcceleration_; |
---|
61 | float rotationAcceleration_; |
---|
62 | float translationDamping_; |
---|
63 | float rotationDamping_; |
---|
64 | |
---|
65 | Radian maxRotationRadian_; |
---|
66 | Radian rotationAccelerationRadian_; |
---|
67 | Radian rotationDampingRadian_; |
---|
68 | Radian zeroRadian_; |
---|
69 | Radian mouseXRotation_; |
---|
70 | Radian mouseYRotation_; |
---|
71 | |
---|
72 | float mouseX_; |
---|
73 | float mouseY_; |
---|
74 | |
---|
75 | int emitterRate_; |
---|
76 | }; |
---|
77 | } |
---|
78 | |
---|
79 | #endif /* _SpaceShip_H__ */ |
---|