Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Mar 23, 2005, 5:43:07 PM (19 years ago)
Author:
patrick
Message:

orxonox/trunk: implemented garbage collector, is not yet collecting, i have to update the list.h first.

File:
1 edited

Legend:

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

    r3632 r3646  
    2121
    2222  void setFlightDirection(Quaternion* flightDirection);
     23  void setSpeed(float speed);
     24  void setTTL(float ttl);
    2325
    2426  virtual void hit (WorldEntity* weapon, Vector* loc);
     
    3234  Primitive* projectileModel;          //!< this serves temporary as a plasma bullet
    3335  float speed;                         //!< this is the speed of the projectile
     36  float currentLifeTime;               //!< this is the time, the projectile exists in this world (incremented by tick)
     37  float ttl;                           //!< time to life, after this time, the projectile will garbage collect itself
    3438  Vector* flightDirection;             //!< direction in which the shoot flights
     39 
    3540};
    3641
Note: See TracChangeset for help on using the changeset viewer.