source:
orxonox.OLD/orxonox/branches/chris/src/shoot_laser.h
@
1982
Last change on this file since 1982 was 1982, checked in by chris, 20 years ago | |
---|---|
File size: 734 bytes |
Rev | Line | |
---|---|---|
[1896] | 1 | |
2 | #ifndef SHOOT_LASER_H | |
3 | #define SHOOT_LASER_H | |
4 | ||
5 | /* openGL Headers */ | |
6 | #include <GL/glut.h> | |
7 | ||
8 | #include "stdincl.h" | |
[1904] | 9 | #include "data_tank.h" |
[1896] | 10 | |
11 | class ShootLaser { | |
12 | ||
13 | ||
14 | public: | |
15 | ||
16 | /* a list of all shoot-amental objects */ | |
17 | struct shoot { | |
18 | shoot *next; | |
19 | float xCor; | |
20 | float yCor; | |
21 | float zCor; | |
[1920] | 22 | float xVel; |
23 | float yVel; | |
24 | float zVel; | |
[1896] | 25 | float collisionRadius; |
26 | }; | |
[1899] | 27 | shoot* lastShoot; |
[1896] | 28 | |
29 | ShootLaser (); | |
30 | ~ShootLaser (); | |
31 | ||
[1929] | 32 | int inhibitor; |
33 | ||
[1900] | 34 | void drawShoot(void); |
[1896] | 35 | void addShoot(shoot* sh); |
36 | void addShoot(float x, float y, float z); | |
[1920] | 37 | void addShootExt(float x, float y, float z, float xVel, float yVel, float zVel); |
[1900] | 38 | void setShootStep(float step); |
39 | void removeShoot(shoot* sh); | |
[1896] | 40 | |
41 | ||
42 | private: | |
[1899] | 43 | |
[1900] | 44 | float step; |
45 | ||
[1896] | 46 | }; |
47 | ||
48 | #endif |
Note: See TracBrowser
for help on using the repository browser.