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