Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/src/shoot_rocket.h @ 3404

Last change on this file since 3404 was 3224, checked in by bensch, 20 years ago

orxonox/trunk: FILE_H → _FILE_H to all h-files.

File size: 964 bytes
RevLine 
[1920]1
[3224]2#ifndef _SHOOT_ROCKET_H
3#define _SHOOT_ROCKET_H
[1920]4
5
6
[1926]7enum RocketType { HOMING, SIDEACC, BACKPARABLE, ROTATER};
[1924]8enum RocketDirection {LEFT, RIGHT, UP, DOWN};
9
[2036]10
[1920]11class ShootRocket {
12
13 public:
14 
15  /* a list of all shoot-amental objects */
16  struct shoot {
[1924]17    enum RocketType type;
[1920]18    shoot *next;
19    float xCor;
20    float yCor;
21    float zCor;   
22    float xVel;
23    float yVel;
24    float zVel;
25    float xAcc;
26    float yAcc;
27    float zAcc;
28    float age;
[1957]29    float lifetime;
[1920]30    float collisionRadius;
31  };
32  shoot* lastShoot;
[1926]33 
[1920]34  ShootRocket ();
35  ~ShootRocket ();
[1921]36 
37  int inhibitor;
[1926]38  float rotateAngle;
[1920]39
40  void drawShoot(void);
41  void addShoot(shoot* sh);
[1924]42  void addBackParable(float x, float y, float z);
43  void addSideAcc(float x, float y, float z, enum RocketDirection direction);
[1926]44  void addRotater(float x, float y, float z);
45
[1920]46  void setShootStep(float step);
47  void removeShoot(shoot* sh);
48
49
50 private:
51
52  float step;
53
54};
55
[3224]56#endif /* _SHOOT_ROCKET_H */
Note: See TracBrowser for help on using the repository browser.