source:
orxonox.OLD/orxonox/branches/john/src/player.h
@
3237
Last change on this file since 3237 was 2034, checked in by john, 20 years ago | |
---|---|
File size: 825 bytes |
Rev | Line | |
---|---|---|
[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" |
[2034] | 11 | /* John */ |
12 | #include "3dUnit.h" | |
[1872] | 13 | |
[1853] | 14 | class Player { |
15 | ||
16 | public: | |
17 | Player (); | |
18 | ~Player (); | |
19 | ||
[1899] | 20 | /* position of the spacecraft */ |
21 | float xCor; | |
22 | float yCor; | |
23 | float zCor; | |
[1900] | 24 | |
25 | float collisionRadius; | |
[2034] | 26 | // Contains the 3d Date, John |
27 | C3dUnit TestModel; | |
28 | ||
[1899] | 29 | /* this player wanna shoot? so include a ref to ShootLaser */ |
30 | ShootLaser* shootLaser; | |
[1920] | 31 | ShootRocket* shootRocket; |
[1899] | 32 | |
[1879] | 33 | void setPosition(float x, float y, float z); |
34 | void getPosition(float* x, float* y, float* z); | |
[1900] | 35 | void setCollisionRadius(float radius); |
[1879] | 36 | void goX(float x); |
37 | void goY(float y); | |
38 | void goZ(float x); | |
[1872] | 39 | void shoot(int n); |
40 | // void addIO(InputOutput *io); | |
[1858] | 41 | void drawPlayer(void); |
42 | ||
[2034] | 43 | |
[1856] | 44 | private: |
45 | ||
[1858] | 46 | |
[1853] | 47 | }; |
48 | ||
49 | #endif |
Note: See TracBrowser
for help on using the repository browser.