Last change
on this file since 2012 was
1982,
checked in by chris, 20 years ago
|
orxonox/branches/chris: merged trunk into my branch, moved new files into new folder
|
File size:
738 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 "shoot_rocket.h" |
---|
10 | #include "data_tank.h" |
---|
11 | |
---|
12 | class Player { |
---|
13 | |
---|
14 | public: |
---|
15 | Player (); |
---|
16 | ~Player (); |
---|
17 | |
---|
18 | /* position of the spacecraft */ |
---|
19 | float xCor; |
---|
20 | float yCor; |
---|
21 | float zCor; |
---|
22 | |
---|
23 | float collisionRadius; |
---|
24 | |
---|
25 | /* this player wanna shoot? so include a ref to ShootLaser */ |
---|
26 | ShootLaser* shootLaser; |
---|
27 | ShootRocket* shootRocket; |
---|
28 | |
---|
29 | void setPosition(float x, float y, float z); |
---|
30 | void getPosition(float* x, float* y, float* z); |
---|
31 | void setCollisionRadius(float radius); |
---|
32 | void goX(float x); |
---|
33 | void goY(float y); |
---|
34 | void goZ(float x); |
---|
35 | void shoot(int n); |
---|
36 | // void addIO(InputOutput *io); |
---|
37 | void drawPlayer(void); |
---|
38 | |
---|
39 | private: |
---|
40 | |
---|
41 | |
---|
42 | }; |
---|
43 | |
---|
44 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.