Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

Last change on this file since 1978 was 1956, checked in by bensch, 20 years ago

orxonox/trunk: now the Trunk should be merged with the new Makefile. Hopefully it works

File size: 738 bytes
RevLine 
[1853]1
2#ifndef PLAYER_H
3#define PLAYER_H
4
[1872]5/* openGL Headers */
6#include <GL/glut.h>
[1853]7
[1896]8#include "shoot_laser.h"
[1920]9#include "shoot_rocket.h"
[1904]10#include "data_tank.h"
[1872]11
[1853]12class Player {
13
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
25  /* this player wanna shoot? so include a ref to ShootLaser */
26  ShootLaser* shootLaser;
[1920]27  ShootRocket* shootRocket;
[1899]28
[1879]29  void setPosition(float x, float y, float z);
30  void getPosition(float* x, float* y, float* z);
[1900]31  void setCollisionRadius(float radius);
[1879]32  void goX(float x);
33  void goY(float y);
34  void goZ(float x);
[1872]35  void shoot(int n);
36  //  void addIO(InputOutput *io);
[1858]37  void drawPlayer(void);
38
[1856]39 private:
40
[1858]41
[1853]42};
43
44#endif
Note: See TracBrowser for help on using the repository browser.