Last change
on this file since 3747 was
2034,
checked in by john, 20 years ago
|
Ich habe die 3ds Model Funktion hinzugefügt.
Funktioniert bislang nur, falls sich eine Datei test.3ds im gleichen Verzeichnis befindet!!!
|
File size:
825 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 | /* John */ |
---|
12 | #include "3dUnit.h" |
---|
13 | |
---|
14 | class Player { |
---|
15 | |
---|
16 | public: |
---|
17 | Player (); |
---|
18 | ~Player (); |
---|
19 | |
---|
20 | /* position of the spacecraft */ |
---|
21 | float xCor; |
---|
22 | float yCor; |
---|
23 | float zCor; |
---|
24 | |
---|
25 | float collisionRadius; |
---|
26 | // Contains the 3d Date, John |
---|
27 | C3dUnit TestModel; |
---|
28 | |
---|
29 | /* this player wanna shoot? so include a ref to ShootLaser */ |
---|
30 | ShootLaser* shootLaser; |
---|
31 | ShootRocket* shootRocket; |
---|
32 | |
---|
33 | void setPosition(float x, float y, float z); |
---|
34 | void getPosition(float* x, float* y, float* z); |
---|
35 | void setCollisionRadius(float radius); |
---|
36 | void goX(float x); |
---|
37 | void goY(float y); |
---|
38 | void goZ(float x); |
---|
39 | void shoot(int n); |
---|
40 | // void addIO(InputOutput *io); |
---|
41 | void drawPlayer(void); |
---|
42 | |
---|
43 | |
---|
44 | private: |
---|
45 | |
---|
46 | |
---|
47 | }; |
---|
48 | |
---|
49 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.