Last change
on this file since 2640 was
2036,
checked in by patrick, 20 years ago
|
orxonxo/trunk/src: extended framework: class inheritance, right including (had som bugs), framework not finished yet
|
File size:
646 bytes
|
Line | |
---|
1 | |
---|
2 | #ifndef SHOOT_LASER_H |
---|
3 | #define SHOOT_LASER_H |
---|
4 | |
---|
5 | |
---|
6 | class ShootLaser { |
---|
7 | |
---|
8 | public: |
---|
9 | |
---|
10 | /* a list of all shoot-amental objects */ |
---|
11 | struct shoot { |
---|
12 | shoot *next; |
---|
13 | float xCor; |
---|
14 | float yCor; |
---|
15 | float zCor; |
---|
16 | float xVel; |
---|
17 | float yVel; |
---|
18 | float zVel; |
---|
19 | float collisionRadius; |
---|
20 | }; |
---|
21 | shoot* lastShoot; |
---|
22 | |
---|
23 | ShootLaser (); |
---|
24 | ~ShootLaser (); |
---|
25 | |
---|
26 | int inhibitor; |
---|
27 | |
---|
28 | void drawShoot(void); |
---|
29 | void addShoot(shoot* sh); |
---|
30 | void addShoot(float x, float y, float z); |
---|
31 | void addShootExt(float x, float y, float z, float xVel, float yVel, float zVel); |
---|
32 | void setShootStep(float step); |
---|
33 | void removeShoot(shoot* sh); |
---|
34 | |
---|
35 | |
---|
36 | private: |
---|
37 | |
---|
38 | float step; |
---|
39 | |
---|
40 | }; |
---|
41 | |
---|
42 | #endif |
---|
Note: See
TracBrowser
for help on using the repository browser.