Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/sound/src/player.h @ 3338

Last change on this file since 3338 was 3238, checked in by bensch, 20 years ago

orxonox/branches: updated branches: buerli, nico, sound. And moved bezierTrack to old.bezierTrack. Conflicts resolved in a usefull order.
Conflics mostly resolved in favor of trunk
merge.

File size: 930 bytes
RevLine 
[2190]1/*!
2    \file player.h
3    \brief Implements a basic controllable WorldEntity
4*/
[1853]5
[3238]6#ifndef _PLAYER_H
7#define _PLAYER_H
[1853]8
[2036]9#include "world_entity.h"
[3238]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:
[3238]18  Player(bool isFree = false);
19  ~Player();
[2551]20 
[3238]21  virtual void postSpawn();
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);
26  virtual void command(Command* cmd);
[1900]27 
[3238]28  virtual void draw();
29  virtual void getLookat(Location* locbuf);
[2551]30 
[3238]31  virtual void leftWorld();
[2551]32 
[1856]33 private:
[2551]34  bool bUp, bDown, bLeft, bRight, bAscend, bDescend;
35  bool bFire;
36  Vector velocity;
[3238]37  float travelSpeed;
[2551]38  float acceleration;
[3238]39  GLuint objectList;
40  Object* obj;
[2551]41 
[3238]42  void move(float time);
[2551]43 
[1853]44};
45
[3238]46#endif /* _PLAYER_H */
Note: See TracBrowser for help on using the repository browser.