Last change
on this file since 3632 was
3632,
checked in by patrick, 19 years ago
|
orxonox/trunk: bullets now tick() but they shoot all over the place… some problems with the gundirection calculation
|
File size:
853 bytes
|
Line | |
---|
1 | /*! |
---|
2 | \projectile.h |
---|
3 | \brief a projectile, that is been shooted by a weapon |
---|
4 | */ |
---|
5 | |
---|
6 | #ifndef _PROJECTILE_H |
---|
7 | #define _PROJECTILE_H |
---|
8 | |
---|
9 | #include "world_entity.h" |
---|
10 | |
---|
11 | class Primitive; |
---|
12 | class Vector; |
---|
13 | |
---|
14 | class Projectile : public WorldEntity |
---|
15 | { |
---|
16 | friend class World; |
---|
17 | |
---|
18 | public: |
---|
19 | Projectile (); |
---|
20 | virtual ~Projectile (); |
---|
21 | |
---|
22 | void setFlightDirection(Quaternion* flightDirection); |
---|
23 | |
---|
24 | virtual void hit (WorldEntity* weapon, Vector* loc); |
---|
25 | virtual void destroy (); |
---|
26 | |
---|
27 | virtual void tick (float time); |
---|
28 | virtual void draw (); |
---|
29 | |
---|
30 | private: |
---|
31 | //physical attriutes like: force, speed, acceleration etc. |
---|
32 | Primitive* projectileModel; //!< this serves temporary as a plasma bullet |
---|
33 | float speed; //!< this is the speed of the projectile |
---|
34 | Vector* flightDirection; //!< direction in which the shoot flights |
---|
35 | }; |
---|
36 | |
---|
37 | #endif /* _PROJECTILE_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.