Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/spaceshipcontrol/src/world_entities/space_ships/hover.h @ 6663

Last change on this file since 6663 was 6637, checked in by bensch, 19 years ago

orxonox/trunk: merged the SpaceShipControl branche back to the trunk

merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/spaceshipcontrol . -r6482:HEAD

minor conflicts, and added file hover.cc/h to the Makefile.

File size: 2.1 KB
Line 
1
2/*!
3 * @file helicopter.h
4 * Implements the Control of a Hover
5 */
6
7#ifndef _HOVER_H
8#define _HOVER_H
9
10#include "playable.h"
11
12
13class Hover : public Playable
14{
15
16  public:
17
18    Hover();
19    Hover(const char* fileName);
20    Hover(const TiXmlElement* root);
21    virtual ~Hover();
22
23    void init();
24    void loadParams(const TiXmlElement* root);
25
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 time);
34    virtual void draw() const;
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
59    float                 mouseSensitivity;   //!< the mouse sensitivity
60
61    Vector                velocity;           //!< the velocity of the player.
62    Vector                velocityDir;        //!< the direction of the velocity of the spaceship
63    float                 travelSpeed;        //!< the current speed of the player (to make soft movement)
64    float                 acceleration;       //!< the acceleration of the player.
65   
66    float                 airViscosity;
67
68};
69
70#endif /* _HOVER_H */
Note: See TracBrowser for help on using the repository browser.