Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/shadows/src/player.h @ 3698

Last change on this file since 3698 was 3698, checked in by dave, 19 years ago

branches/shadows: so jetzt ist die Ausgangslage geschaffen

File size: 1.0 KB
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"
[1853]10
[3396]11class OBJModel;
[3365]12
[2190]13//! Basic controllable WorldEntity
[2036]14class Player : public WorldEntity
15{
[2551]16  friend class World;
17 
[1853]18 public:
[3226]19  Player(bool isFree = false);
20  ~Player();
[2551]21 
[3236]22  virtual void postSpawn();
[3226]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);
[1900]28 
[3226]29  virtual void draw();
[3365]30  // virtual void getLookat(Location* locbuf);
[2551]31 
[3226]32  virtual void leftWorld();
[2551]33 
[3698]34 
[1856]35 private:
[2551]36  bool bUp, bDown, bLeft, bRight, bAscend, bDescend;
37  bool bFire;
[3698]38 
[2551]39  Vector velocity;
[3698]40  Vector accelSlip;
41  Vector accelSlipDirection;
[3227]42  float travelSpeed;
[2551]43  float acceleration;
[3698]44  float angle;
[2730]45  GLuint objectList;
[2551]46 
[3226]47  void move(float time);
[3698]48  void rotate(float time);
49  void backRotate(float time);
50  Vector slip (float time,Vector accel);
[1853]51};
52
[3224]53#endif /* _PLAYER_H */
Note: See TracBrowser for help on using the repository browser.