Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 3225 was 3224, checked in by bensch, 20 years ago

orxonox/trunk: FILE_H → _FILE_H to all h-files.

File size: 947 bytes
RevLine 
[2190]1/*!
2    \file player.h
3    \brief Implements a basic controllable WorldEntity
4*/
[1853]5
[3224]6#ifndef _PLAYER_H
7#define _PLAYER_H
[1853]8
[2036]9#include "world_entity.h"
[3196]10#include "importer/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
[3224]46#endif /* _PLAYER_H */
Note: See TracBrowser for help on using the repository browser.