Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 2080 was 2036, checked in by patrick, 21 years ago

orxonxo/trunk/src: extended framework: class inheritance, right including (had som bugs), framework not finished yet

File size: 725 bytes
RevLine 
[1853]1
2#ifndef PLAYER_H
3#define PLAYER_H
4
[2036]5#include "world_entity.h"
[1853]6
[2036]7class ShootLaser;
8class ShootRocket;
[1872]9
[1853]10
[2036]11class Player : public WorldEntity
12{
13
[1853]14 public:
15  Player ();
16  ~Player ();
17
[1899]18  /* position of the spacecraft */
19  float xCor;
20  float yCor;
21  float zCor;
[1900]22 
23  float collisionRadius;
[1899]24
[2036]25
[1899]26  /* this player wanna shoot? so include a ref to ShootLaser */
27  ShootLaser* shootLaser;
[1920]28  ShootRocket* shootRocket;
[1899]29
[1879]30  void setPosition(float x, float y, float z);
31  void getPosition(float* x, float* y, float* z);
[1900]32  void setCollisionRadius(float radius);
[2036]33  void paint();
[1879]34  void goX(float x);
35  void goY(float y);
36  void goZ(float x);
[1872]37  void shoot(int n);
38  //  void addIO(InputOutput *io);
[1858]39  void drawPlayer(void);
40
[1856]41 private:
42
[1858]43
[1853]44};
45
46#endif
Note: See TracBrowser for help on using the repository browser.