Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/player.h @ 3159

Last change on this file since 3159 was 2811, checked in by bensch, 20 years ago

orxonox/trunk: merged the ObjectImporter to trunk: merged with
svn merge branches/importer/src/ trunk/src/ -r 2794:HEAD

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