Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/world_entities/space_ships/hover.h @ 6882

Last change on this file since 6882 was 6871, checked in by bensch, 19 years ago

orxonox/trunk: small fixes (cleanup)

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