Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/core/player.h @ 1897

Last change on this file since 1897 was 1896, checked in by patrick, 21 years ago

orxonox/trunk: added ability to shoot. so check out the new release and shoot the fuck up

File size: 611 bytes
Line 
1
2#ifndef PLAYER_H
3#define PLAYER_H
4
5/* openGL Headers */
6#include <GL/glut.h>
7
8#include "shoot_laser.h"
9//#include "world.h"
10
11class Player {
12
13 public:
14  Player ();
15  ~Player ();
16
17  void setPosition(float x, float y, float z);
18  void getPosition(float* x, float* y, float* z);
19  void goX(float x);
20  void goY(float y);
21  void goZ(float x);
22  void shoot(int n);
23  //  void addIO(InputOutput *io);
24  void drawPlayer(void);
25
26 private:
27  /* position of the spacecraft */
28  float xCor;
29  float yCor;
30  float zCor;
31
32
33  /* this player wanna shoot? so include a ref to ShootLaser */
34  ShootLaser* shootLaser;
35};
36
37#endif
Note: See TracBrowser for help on using the repository browser.