Last change
on this file since 3575 was
3573,
checked in by patrick, 19 years ago
|
orxonox/trunk: implemented skeleton for animatino player. added classes weapon and projectile, the base classes for future guns and rocket lunchers or whatever you will be wanting to implement. PS: animation player rules…
|
File size:
537 bytes
|
Rev | Line | |
---|
[3573] | 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 | |
---|
| 12 | class Projectile : public WorldEntity |
---|
| 13 | { |
---|
| 14 | friend class World; |
---|
| 15 | |
---|
| 16 | public: |
---|
| 17 | Projectile (); |
---|
| 18 | virtual ~Projectile (); |
---|
| 19 | |
---|
| 20 | |
---|
| 21 | virtual void tick (float time); |
---|
| 22 | virtual void hit (WorldEntity* weapon, Vector loc); |
---|
| 23 | virtual void destroy (); |
---|
| 24 | virtual void collide (WorldEntity* other, Uint32 ownhitflags, Uint32 otherhitflags); |
---|
| 25 | virtual void draw (); |
---|
| 26 | |
---|
| 27 | }; |
---|
| 28 | |
---|
| 29 | #endif /* _PROJECTILE_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.