Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/trunk/src/world_entities/space_ships/collision_probe.h @ 8915

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

merged the bsp branche back to trunk

File size: 1.8 KB
Line 
1/*!
2 * @file space_ship.h
3 * Implements the Control of a Spaceship
4 */
5
6#ifndef _COLLISION_PROBE_H
7#define _COLLISION_PROBE_H
8
9#include "playable.h"
10
11#include "vector.h"
12
13class CollisionProbe : public Playable
14{
15
16  public:
17    CollisionProbe(const std::string& fileName);
18    CollisionProbe(const TiXmlElement* root = NULL);
19    virtual ~CollisionProbe();
20
21    virtual void loadParams(const TiXmlElement* root);
22
23    virtual void tick(float time);
24    virtual void draw() const;
25
26    virtual void process(const Event &event);
27
28    virtual void enter() {}
29    virtual void leave() {}
30    virtual void setPlayDirection(const Quaternion& rot, float speed = 0.0f) {}
31
32  private:
33    void init();
34
35
36    bool                  bUp;                //!< up button pressed.
37    bool                  bDown;              //!< down button pressed.
38    bool                  bLeft;              //!< left button pressed.
39    bool                  bRight;             //!< right button pressed.
40    bool                  bAscend;            //!< ascend button pressed.
41    bool                  bDescend;           //!< descend button presses.
42//    bool                  bFire;              //!< fire button pressed.(moved to playable)
43    bool                  bRollL;             //!< rolling button pressed (left)
44    bool                  bRollR;             //!< rolling button pressed (right)
45
46    float                 xMouse;             //!< mouse moved in x-Direction
47    float                 yMouse;             //!< mouse moved in y-Direction
48    float                 mouseSensitivity;   //!< the mouse sensitivity
49    int                   yInvert;
50    int                   controlVelocityX;
51    int                   controlVelocityY;
52
53    Vector                localVelocity;      //!< velocity this entity flights with
54
55};
56
57#endif /* _SPACE_SHIPS_H */
Note: See TracBrowser for help on using the repository browser.