Changeset 3709 in orxonox.OLD for orxonox/trunk/src/world_entities/test_bullet.h
- Timestamp:
- Apr 1, 2005, 1:45:47 PM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/world_entities/test_bullet.h
r3708 r3709 4 4 */ 5 5 6 #ifndef _ PROJECTILE_H7 #define _ PROJECTILE_H6 #ifndef _TEST_BULLET_H 7 #define _TEST_BULLET_H 8 8 9 9 #include "world_entity.h" … … 12 12 class Weapon; 13 13 14 class Projectile : public WorldEntity14 class TestBullet : public Projectile 15 15 { 16 16 friend class World; 17 17 18 18 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 (); 25 21 26 22 virtual void hit (WorldEntity* weapon, Vector* loc); … … 29 25 virtual void tick (float time); 30 26 virtual void draw (); 31 32 private:33 //physical attriutes like: force, speed, acceleration etc.34 float speed; //!< this is the speed of the projectile35 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 itself37 Vector* flightDirection; //!< direction in which the shoot flights38 Weapon* weapon; //!< weapon the shoot belongs to39 27 40 28 }; 41 29 42 #endif /* _ PROJECTILE_H */30 #endif /* _TEST_BULLET_H */
Note: See TracChangeset
for help on using the changeset viewer.