Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 1899 was 1899, checked in by patrick, 20 years ago

trunk/orxonox: collision detection implemented: simple spheres. all debug informations still print out to console. one enemy added, no AI, no move, waits to be killed. No kill signal implemented yet: look debug infos on console.

File size: 613 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  /* position of the spacecraft */
18  float xCor;
19  float yCor;
20  float zCor;
21
22  /* this player wanna shoot? so include a ref to ShootLaser */
23  ShootLaser* shootLaser;
24
25  void setPosition(float x, float y, float z);
26  void getPosition(float* x, float* y, float* z);
27  void goX(float x);
28  void goY(float y);
29  void goZ(float x);
30  void shoot(int n);
31  //  void addIO(InputOutput *io);
32  void drawPlayer(void);
33
34 private:
35
36
37};
38
39#endif
Note: See TracBrowser for help on using the repository browser.