Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/terrain.old/src/world_entities/space_ships/cruizer.h @ 9611

Last change on this file since 9611 was 9061, checked in by patrick, 18 years ago

merged the single_player branche to trunk

File size: 2.2 KB
Line 
1
2/*!
3 * @file cruizer.h
4 * Implements the Control of a Cruizer
5 */
6
7#ifndef _CRUIZER_H
8#define _CRUIZER_H
9
10#include "playable.h"
11
12// Forward Declaration
13class ParticleEmitter;
14class ParticleSystem;
15
16class Cruizer : public Playable
17{
18  public:
19    Cruizer(const std::string& fileName);
20    Cruizer(const TiXmlElement* root = NULL);
21    virtual ~Cruizer();
22
23    virtual void loadParams(const TiXmlElement* root);
24    virtual void setPlayDirection(const Quaternion& rot, float speed = 0.0f);
25    virtual void enter();
26    virtual void leave();
27
28    virtual void postSpawn();
29    virtual void leftWorld();
30
31    virtual void collidesWith(WorldEntity* entity, const Vector& location);
32    virtual void tick(float dt);
33    virtual void draw() const;
34
35    virtual void process(const Event &event);
36
37  private:
38    void init();
39    void movement(float dt);
40
41  private:
42    bool                  bForward;           //!< forward button pressed.
43    bool                  bBackward;          //!< backward button pressed.
44    bool                  bLeft;              //!< left button pressed.
45    bool                  bRight;             //!< right button pressed.
46    bool                  bAscend;            //!< ascend button pressed.
47    bool                  bDescend;           //!< descend button presses.
48
49    int                   yInvert;
50    float                 mouseSensitivity;   //!< the mouse sensitivity
51
52    PNode                 cameraNode;
53    float                 cameraLook;
54    float                 rotation;
55
56   // Vector                velocity;           //!< the velocity of the Cruizer.
57    Quaternion            direction;          //!< the direction of the Cruizer.
58    float                 travelSpeed;        //!< the current speed of the Hove (to make soft movement)
59    float                 acceleration;       //!< the acceleration of the Cruizer.
60    float                 airFriction;        //!< AirFriction.
61
62    float                 rotorSpeed;         //!< the speed of the rotor.
63    float                 rotorCycle;         //!< The Cycle the rotor is in.
64
65    float                 airViscosity;
66
67    ParticleEmitter*      burstEmitter;
68    ParticleSystem*       burstSystem;
69};
70
71#endif /* _CRUIZERS_H */
Note: See TracBrowser for help on using the repository browser.