Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/chris/src/player.h @ 2115

Last change on this file since 2115 was 2101, checked in by chris, 20 years ago

orxonox/branches/chris: Finished the "GETITTOCOMPILE" project… compiling should work now, but linking is a different story

File size: 736 bytes
Line 
1
2#ifndef PLAYER_H
3#define PLAYER_H
4
5#include "world_entity.h"
6
7class Player : public WorldEntity
8{
9        friend class World;
10
11 public:
12  Player (bool isFree = false);
13  ~Player ();
14
15        virtual void post_spawn ();
16  virtual void tick (float time);
17  virtual void hit (WorldEntity* weapon, Vector loc);
18  virtual void destroy ();
19  virtual void collide (WorldEntity* other,  Uint32 ownhitflags, Uint32 otherhitflags);
20        virtual void command (Command* cmd);
21 
22  virtual void draw ();
23  virtual void get_lookat (Location* locbuf);
24
25        virtual void left_world ();
26
27 private:
28        bool bUp, bDown, bLeft, bRight, bAscend, bDescend;
29        bool bFire;
30        Vector velocity;
31        float travel_speed;
32        float acceleration;
33       
34        void move (float time);
35       
36};
37
38#endif
Note: See TracBrowser for help on using the repository browser.