Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 1, 2005, 1:45:47 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: implemented TestBullet

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/world_entities/test_bullet.h

    r3708 r3709  
    44*/
    55
    6 #ifndef _PROJECTILE_H
    7 #define _PROJECTILE_H
     6#ifndef _TEST_BULLET_H
     7#define _TEST_BULLET_H
    88
    99#include "world_entity.h"
     
    1212class Weapon;
    1313
    14 class Projectile : public WorldEntity
     14class TestBullet : public Projectile
    1515{
    1616  friend class World;
    1717
    1818 public:
    19   Projectile (Weapon* weapon);
    20   virtual ~Projectile ();
    21 
    22   void setFlightDirection(Quaternion flightDirection);
    23   void setSpeed(float speed);
    24   void setTTL(float ttl);
     19  TestBullet (Weapon* weapon);
     20  virtual ~TestBullet ();
    2521
    2622  virtual void hit (WorldEntity* weapon, Vector* loc);
     
    2925  virtual void tick (float time);
    3026  virtual void draw ();
    31 
    32  private:
    33   //physical attriutes like: force, speed, acceleration etc.
    34   float speed;                         //!< this is the speed of the projectile
    35   float currentLifeTime;               //!< this is the time, the projectile exists in this world (incremented by tick)
    36   float ttl;                           //!< time to life, after this time, the projectile will garbage collect itself
    37   Vector* flightDirection;             //!< direction in which the shoot flights
    38   Weapon* weapon;                      //!< weapon the shoot belongs to
    3927 
    4028};
    4129
    42 #endif /* _PROJECTILE_H */
     30#endif /* _TEST_BULLET_H */
Note: See TracChangeset for help on using the changeset viewer.