Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/chris/src/player.h @ 2064

Last change on this file since 2064 was 2058, checked in by chris, 20 years ago

orxonox/branches/chris: Trunk remerged into my branch started on SDL reconfiguration

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.