Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

source: orxonox.OLD/orxonox/branches/textEngine/src/world_entities/projectile.h @ 3783

Last change on this file since 3783 was 3681, checked in by bensch, 20 years ago

orxonox/branches/textEngine: merged trunk here.
merged with command:
svn merge ../trunk textEngine -r 3467:HEAD
no conflicts

File size: 1.0 KB
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
11class Vector;
12
13class Projectile : public WorldEntity
14{
15  friend class World;
16
17 public:
18  Projectile ();
19  virtual ~Projectile ();
20
21  void setFlightDirection(Quaternion* flightDirection);
22  void setSpeed(float speed);
23  void setTTL(float ttl);
24
25  virtual void hit (WorldEntity* weapon, Vector* loc);
26  virtual void destroy ();
27
28  virtual void tick (float time);
29  virtual void draw ();
30
31 private:
32  //physical attriutes like: force, speed, acceleration etc.
33  float speed;                         //!< this is the speed of the projectile
34  float currentLifeTime;               //!< this is the time, the projectile exists in this world (incremented by tick)
35  float ttl;                           //!< time to life, after this time, the projectile will garbage collect itself
36  Vector* flightDirection;             //!< direction in which the shoot flights
37 
38};
39
40#endif /* _PROJECTILE_H */
Note: See TracBrowser for help on using the repository browser.