Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 10514 was 9869, checked in by bensch, 18 years ago

orxonox/trunk: merged the new_class_id branche back to the trunk.
merged with command:
svn merge https://svn.orxonox.net/orxonox/branches/new_class_id trunk -r9683:HEAD
no conflicts… puh..

File size: 1.9 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  ObjectListDeclaration(CollisionProbe);
16
17  public:
18    CollisionProbe(const std::string& fileName);
19    CollisionProbe(const TiXmlElement* root = NULL);
20    virtual ~CollisionProbe();
21
22    virtual void loadParams(const TiXmlElement* root);
23
24    virtual void tick(float time);
25    virtual void draw() const;
26
27    virtual void process(const Event &event);
28
29    virtual void enter() {}
30    virtual void leave() {}
31    virtual void setPlayDirection(const Quaternion& rot, float speed = 0.0f) {}
32
33  private:
34    void init();
35
36
37    bool                  bUp;                //!< up button pressed.
38    bool                  bDown;              //!< down button pressed.
39    bool                  bLeft;              //!< left button pressed.
40    bool                  bRight;             //!< right button pressed.
41    bool                  bAscend;            //!< ascend button pressed.
42    bool                  bDescend;           //!< descend button presses.
43//    bool                  bFire;              //!< fire button pressed.(moved to playable)
44    bool                  bRollL;             //!< rolling button pressed (left)
45    bool                  bRollR;             //!< rolling button pressed (right)
46
47    float                 xMouse;             //!< mouse moved in x-Direction
48    float                 yMouse;             //!< mouse moved in y-Direction
49    float                 mouseSensitivity;   //!< the mouse sensitivity
50    int                   yInvert;
51    int                   controlVelocityX;
52    int                   controlVelocityY;
53
54    Vector                localVelocity;      //!< velocity this entity flights with
55
56};
57
58#endif /* _SPACE_SHIPS_H */
Note: See TracBrowser for help on using the repository browser.