Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/branches/presentation/src/world_entities/creatures/fps_player.h @ 9162

Last change on this file since 9162 was 9162, checked in by rennerc, 18 years ago
File size: 1.4 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    virtual void destroy(WorldEntity* killer);
30    virtual void respawn();
31
32    virtual void tick(float time);
33    virtual void draw() const;
34
35
36    virtual void process(const Event &event);
37
38  private:
39    void init();
40
41    bool                  bLeft;
42    bool                  bRight;
43    bool                  bForward;
44    bool                  bBackward;
45    bool                  bJump;              //!< jumping
46    bool                  bPosBut;             //!< position button
47
48    float                 xMouse;             //!< mouse moved in x-Direction
49    float                 yMouse;             //!< mouse moved in y-Direction
50
51
52    float                 heading;
53    float                 attitude;
54
55    PNode                 cameraNode;
56
57    float                 fallVelocity;        //!< velocity for falling down
58    float                 jumpForce;           //!< the jump force
59   
60    bool                  initWeapon;
61};
62
63#endif
Note: See TracBrowser for help on using the repository browser.