Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/world_entities/space_ships/turbine_hover.h @ 9842

Last change on this file since 9842 was 9656, checked in by bensch, 18 years ago

orxonox/trunk: merged the proxy bache back with no conflicts

File size: 2.6 KB
RevLine 
[5996]1
2/*!
[7000]3 * @file turbine_hover.h
4 * Implements the Control of a TurbineHover
[5996]5 */
6
[7000]7#ifndef _TURBINE_HOVER_H
8#define _TURBINE_HOVER_H
[5996]9
10#include "playable.h"
11
[9656]12#include "color.h"
13
[7001]14// Forward Declaration
15class ParticleEmitter;
16class ParticleSystem;
17
[7000]18class TurbineHover : public Playable
[5996]19{
20  public:
[7221]21    TurbineHover(const std::string& fileName);
[7000]22    TurbineHover(const TiXmlElement* root = NULL);
23    virtual ~TurbineHover();
[5996]24
[9656]25    void setBoostColor(const Color& color);
26
[6512]27    virtual void loadParams(const TiXmlElement* root);
[7348]28    virtual void setPlayDirection(const Quaternion& rot, float speed = 0.0f);
[6222]29    virtual void enter();
30    virtual void leave();
31
[9656]32    virtual void setTeam(int teamID);
33
[5996]34    virtual void postSpawn();
35    virtual void leftWorld();
[9656]36    virtual void respawn();
[5996]37
38    virtual void collidesWith(WorldEntity* entity, const Vector& location);
[6806]39    virtual void tick(float dt);
[6005]40    virtual void draw() const;
[5996]41
42    virtual void process(const Event &event);
43
44  private:
[6803]45    void init();
[6806]46    void movement(float dt);
[6803]47
48  private:
[6805]49    bool                  bForward;           //!< forward button pressed.
50    bool                  bBackward;          //!< backward button pressed.
[5996]51    bool                  bLeft;              //!< left button pressed.
52    bool                  bRight;             //!< right button pressed.
53    bool                  bAscend;            //!< ascend button pressed.
54    bool                  bDescend;           //!< descend button presses.
55
[6637]56    int                   yInvert;
[5996]57    float                 mouseSensitivity;   //!< the mouse sensitivity
[6799]58
[6800]59    PNode                 wingNodeLeft;
60    PNode                 wingNodeRight;
61    PNode                 rotorNodeLeft;
62    PNode                 rotorNodeRight;
[6799]63
[6724]64    PNode                 cameraNode;
[6807]65    float                 cameraLook;
66    float                 rotation;
[5996]67
[8490]68   // Vector                velocity;           //!< the velocity of the TurbineHover.
[7000]69    Quaternion            direction;          //!< the direction of the TurbineHover.
[6805]70    float                 travelSpeed;        //!< the current speed of the Hove (to make soft movement)
[7000]71    float                 acceleration;       //!< the acceleration of the TurbineHover.
[6999]72    float                 airFriction;        //!< AirFriction.
[6222]73
[6806]74    float                 rotorSpeed;         //!< the speed of the rotor.
75    float                 rotorCycle;         //!< The Cycle the rotor is in.
76
[6162]77    float                 airViscosity;
[5996]78
[7001]79    ParticleEmitter*      burstEmitter[2];
80    ParticleSystem*       burstSystem;
[5996]81};
82
[7000]83#endif /* _TURBINE_HOVERS_H */
Note: See TracBrowser for help on using the repository browser.