Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/trunk/core/shoot_rocket.h @ 1920

Last change on this file since 1920 was 1920, checked in by bensch, 21 years ago

orxonox/trunk: rockets added (in 3D)

File size: 784 bytes
Line 
1
2#ifndef SHOOT_ROCKET_H
3#define SHOOT_ROCKET_H
4
5/* openGL Headers */
6#include <GL/glut.h>
7
8#include "stdincl.h"
9#include "data_tank.h"
10
11class ShootRocket {
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;   
22    float xVel;
23    float yVel;
24    float zVel;
25    float xAcc;
26    float yAcc;
27    float zAcc;
28    float age;
29    float collisionRadius;
30  };
31  shoot* lastShoot;
32
33  ShootRocket ();
34  ~ShootRocket ();
35
36  void drawShoot(void);
37  void addShoot(shoot* sh);
38  void addShoot(float x, float y, float z);
39  void addShootExt(float x, float y, float z, float xVel, float yVel, float zVel);
40  void setShootStep(float step);
41  void removeShoot(shoot* sh);
42
43
44 private:
45
46  float step;
47
48};
49
50#endif
Note: See TracBrowser for help on using the repository browser.