Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/network/src/world_entities/space_ships/helicopter.h @ 6693

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

branches: removed spaceshipcontrol branche

File size: 2.4 KB
RevLine 
[5996]1
2/*!
[6002]3 * @file helicopter.h
4 * Implements the Control of a Helicopter
[5996]5 */
6
[6002]7#ifndef _HELICOPTER_H
8#define _HELICOPTER_H
[5996]9
10#include "playable.h"
11
12
[6002]13class Helicopter : public Playable
[5996]14{
15
16  public:
17
[6002]18    Helicopter();
19    Helicopter(const char* fileName);
20    Helicopter(const TiXmlElement* root);
21    virtual ~Helicopter();
[5996]22
23    void init();
[6512]24    virtual void loadParams(const TiXmlElement* root);
[5996]25
[6222]26    virtual void enter();
27    virtual void leave();
28
[5996]29    virtual void postSpawn();
30    virtual void leftWorld();
31
32    virtual void collidesWith(WorldEntity* entity, const Vector& location);
33    virtual void tick(float time);
[6005]34    virtual void draw() const;
[5996]35
36    virtual void process(const Event &event);
37
38
39
40  private:
41    void calculateVelocity(float time);
42    void weaponAction();
43
44    // !! temporary !!
45    void ADDWEAPON();
46
47    bool                  bUp;                //!< up button pressed.
48    bool                  bDown;              //!< down button pressed.
49    bool                  bLeft;              //!< left button pressed.
50    bool                  bRight;             //!< right button pressed.
51    bool                  bAscend;            //!< ascend button pressed.
52    bool                  bDescend;           //!< descend button presses.
53    bool                  bFire;              //!< fire button pressed.
54    bool                  bRollL;             //!< rolling button pressed (left)
55    bool                  bRollR;             //!< rolling button pressed (right)
56
57    float                 xMouse;             //!< mouse moved in x-Direction
58    float                 yMouse;             //!< mouse moved in y-Direction
[6693]59    int                   yInvert;
[5996]60    float                 mouseSensitivity;   //!< the mouse sensitivity
[6693]61    //float                 cycle;              //!< hovercycle
[5996]62
63    Vector                velocity;           //!< the velocity of the player.
64    Vector                velocityDir;        //!< the direction of the velocity of the spaceship
65    float                 travelSpeed;        //!< the current speed of the player (to make soft movement)
66    float                 acceleration;       //!< the acceleration of the player.
[6693]67    //float                 rotorspeed;         //!< the speed of the rotor.
68    //float                 tailrotorspeed;     //!< the relativ speed ot the tail rotor
[6222]69
[6162]70    float                 airViscosity;
[5996]71
72};
73
[6002]74#endif /* _HELICOPTERS_H */
Note: See TracBrowser for help on using the repository browser.