Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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

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

blitz article

File size: 684 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"
[1904]9#include "data_tank.h"
[1872]10
[1853]11class Player {
12
13 public:
14  Player ();
15  ~Player ();
16
[1899]17  /* position of the spacecraft */
18  float xCor;
19  float yCor;
20  float zCor;
[1900]21 
22  float collisionRadius;
[1899]23
24  /* this player wanna shoot? so include a ref to ShootLaser */
25  ShootLaser* shootLaser;
26
[1879]27  void setPosition(float x, float y, float z);
28  void getPosition(float* x, float* y, float* z);
[1900]29  void setCollisionRadius(float radius);
[1879]30  void goX(float x);
31  void goY(float y);
32  void goZ(float x);
[1872]33  void shoot(int n);
34  //  void addIO(InputOutput *io);
[1858]35  void drawPlayer(void);
36
[1856]37 private:
38
[1858]39
[1853]40};
41
42#endif
Note: See TracBrowser for help on using the repository browser.