Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/terrain.older/src/world_entities/creatures/fps_player.h @ 10772

Last change on this file since 10772 was 9110, checked in by bensch, 18 years ago

orxonox/trunk: merged the Presentation back

File size: 1.3 KB
Line 
1/*!
2 * @file fps_player.h
3 * Implements a playable for fps games
4 */
5
6#ifndef _FPS_PLAYER_H
7#define _FPS_PLAYER_H
8
9
10#include "playable.h"
11
12
13class FPSPlayer : public Playable
14{
15
16  public:
17    FPSPlayer(const TiXmlElement* root = NULL);
18    virtual ~FPSPlayer();
19
20    virtual void loadParams(const TiXmlElement* root);
21
22    virtual void setPlayDirection(const Quaternion& rot, float speed = 0.0f);
23
24    virtual void enter();
25    virtual void leave();
26
27    virtual void reset();
28
29
30    virtual void tick(float time);
31    virtual void draw() const;
32
33
34    virtual void process(const Event &event);
35
36  private:
37    void init();
38
39    bool                  bLeft;
40    bool                  bRight;
41    bool                  bForward;
42    bool                  bBackward;
43    bool                  bJump;              //!< jumping
44    bool                  bPosBut;             //!< position button
45
46    float                 xMouse;             //!< mouse moved in x-Direction
47    float                 yMouse;             //!< mouse moved in y-Direction
48
49
50    float                 heading;
51    float                 attitude;
52
53    PNode                 cameraNode;
54
55    float                 fallVelocity;        //!< velocity for falling down
56    float                 jumpForce;           //!< the jump force
57};
58
59#endif
Note: See TracBrowser for help on using the repository browser.