Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/nico/src/player.h @ 3542

Last change on this file since 3542 was 3399, checked in by bensch, 20 years ago

orxonox/branches/nico: merged trunk into branches/nico
merged with command:
svn merge ../trunk/ nico/ -r 3238:HEAD
resolved conflict in favor of branches/nico.

File size: 906 bytes
Line 
1/*!
2    \file player.h
3    \brief Implements a basic controllable WorldEntity
4*/
5
6#ifndef _PLAYER_H
7#define _PLAYER_H
8
9#include "world_entity.h"
10
11class OBJModel;
12
13//! Basic controllable WorldEntity
14class Player : public WorldEntity
15{
16  friend class World;
17 
18 public:
19  Player(bool isFree = false);
20  ~Player();
21 
22  virtual void postSpawn();
23  virtual void tick(float time);
24  virtual void hit(WorldEntity* weapon, Vector loc);
25  virtual void destroy();
26  virtual void collide(WorldEntity* other, Uint32 ownhitflags, Uint32 otherhitflags);
27  virtual void command(Command* cmd);
28 
29  virtual void draw();
30  // virtual void getLookat(Location* locbuf);
31 
32  virtual void leftWorld();
33 
34 private:
35  bool bUp, bDown, bLeft, bRight, bAscend, bDescend;
36  bool bFire;
37  Vector velocity;
38  float travelSpeed;
39  float acceleration;
40  GLuint objectList;
41 
42  void move(float time);
43 
44};
45
46#endif /* _PLAYER_H */
Note: See TracBrowser for help on using the repository browser.