|
Last change
on this file since 3631 was
3618,
checked in by patrick, 21 years ago
|
|
orxonox/trunk: adding TestGun to implement a test gun some smaller changes in ghe weapon.h interface. some doxytags for primitive
|
|
File size:
567 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 | |
|---|
| 13 | class Projectile : public WorldEntity |
|---|
| 14 | { |
|---|
| 15 | friend class World; |
|---|
| 16 | |
|---|
| 17 | public: |
|---|
| 18 | Projectile (); |
|---|
| 19 | virtual ~Projectile (); |
|---|
| 20 | |
|---|
| 21 | virtual void hit (WorldEntity* weapon, Vector* loc); |
|---|
| 22 | virtual void destroy (); |
|---|
| 23 | |
|---|
| 24 | virtual void tick (float time); |
|---|
| 25 | virtual void draw (); |
|---|
| 26 | |
|---|
| 27 | private: |
|---|
| 28 | //physical attriutes like: force, speed, acceleration etc. |
|---|
| 29 | Primitive* projectileModel; |
|---|
| 30 | |
|---|
| 31 | }; |
|---|
| 32 | |
|---|
| 33 | #endif /* _PROJECTILE_H */ |
|---|
Note: See
TracBrowser
for help on using the repository browser.