Last change
on this file since 3582 was
3578,
checked in by patrick, 19 years ago
|
orxonox/trunk: working on projectile, functions and doxy, modified the hit(…) function from world_entity
|
File size:
741 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 | |
---|
[3578] | 20 | virtual void hit (WorldEntity* weapon, Vector* loc); |
---|
| 21 | virtual void destroy (); |
---|
| 22 | |
---|
[3573] | 23 | virtual void tick (float time); |
---|
| 24 | virtual void draw (); |
---|
| 25 | |
---|
[3578] | 26 | private: |
---|
| 27 | int health; //<! the healt of a projectile |
---|
| 28 | int maxHelath; //<! the max healt of a projectile |
---|
| 29 | int damageToAirCraft; //<! damage dealt to a air craft |
---|
| 30 | int damageToGroundCraft; //<! damage dealt to a ground craft |
---|
[3573] | 31 | }; |
---|
| 32 | |
---|
| 33 | #endif /* _PROJECTILE_H */ |
---|
Note: See
TracBrowser
for help on using the repository browser.