Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 10726 was 9869, checked in by bensch, 18 years ago

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

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  ObjectListDeclaration(Cruizer);
19  public:
20    Cruizer(const std::string& fileName);
21    Cruizer(const TiXmlElement* root = NULL);
22    virtual ~Cruizer();
23
24    virtual void loadParams(const TiXmlElement* root);
25    virtual void setPlayDirection(const Quaternion& rot, float speed = 0.0f);
26    virtual void enter();
27    virtual void leave();
28
29    virtual void postSpawn();
30    virtual void leftWorld();
31
32    virtual void collidesWith(WorldEntity* entity, const Vector& location);
33    virtual void tick(float dt);
34    virtual void draw() const;
35
36    virtual void process(const Event &event);
37
38  private:
39    void init();
40    void movement(float dt);
41
42  private:
43    bool                  bForward;           //!< forward button pressed.
44    bool                  bBackward;          //!< backward button pressed.
45    bool                  bLeft;              //!< left button pressed.
46    bool                  bRight;             //!< right button pressed.
47    bool                  bAscend;            //!< ascend button pressed.
48    bool                  bDescend;           //!< descend button presses.
49
50    int                   yInvert;
51    float                 mouseSensitivity;   //!< the mouse sensitivity
52
53    PNode                 cameraNode;
54    float                 cameraLook;
55    float                 rotation;
56
57   // Vector                velocity;           //!< the velocity of the Cruizer.
58    Quaternion            direction;          //!< the direction of the Cruizer.
59    float                 travelSpeed;        //!< the current speed of the Hove (to make soft movement)
60    float                 acceleration;       //!< the acceleration of the Cruizer.
61    float                 airFriction;        //!< AirFriction.
62
63    float                 rotorSpeed;         //!< the speed of the rotor.
64    float                 rotorCycle;         //!< The Cycle the rotor is in.
65
66    float                 airViscosity;
67
68    ParticleEmitter*      burstEmitter;
69    ParticleSystem*       burstSystem;
70};
71
72#endif /* _CRUIZERS_H */
Note: See TracBrowser for help on using the repository browser.