Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 11, 2005, 12:55:48 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: setClassID implemented in all files

File:
1 edited

Legend:

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

    r4464 r4597  
    1 /*! 
     1/*!
    22    \projectile.h
    33    \brief a projectile, that is been shooted by a weapon
    44
    55    You can use this class to make some shoots, but this isn't the real idea. If you want to just test, if the
    6     shooting funcions work, use the Projectile class. But if you want to implement your own shoots its 
     6    shooting funcions work, use the Projectile class. But if you want to implement your own shoots its
    77    different:<br>
    88    Make a new class and derive it from Projectile. To have a weapon work well, reimplement the functions
     
    1010    - void draw()
    1111    - void hit() (only if you have working collision detection)
    12     When you have implemented these functions you have just to add the projectiles to your weapon. You ll want 
    13     to make this by looking into the function 
     12    When you have implemented these functions you have just to add the projectiles to your weapon. You ll want
     13    to make this by looking into the function
    1414    - Weapon::fire()
    1515    there you just change the line:
     
    2727class Weapon;
    2828
    29 class Projectile : public WorldEntity 
     29class Projectile : public WorldEntity
    3030{
    3131  friend class World;
     
    4848 protected:
    4949  //physical attriutes like: force, speed, acceleration etc.
    50   float speed;                         //!< this is the speed of the projectile
    51   float currentLifeTime;               //!< this is the time, the projectile exists in this world (incremented by tick)
    52   float ttl;                           //!< time to life, after this time, the projectile will garbage collect itself
    53   Vector* flightDirection;             //!< direction in which the shoot flights
    54   Weapon* weapon;                      //!< weapon the shoot belongs to
    55  
    56   Vector velocity;                     //!< velocity of the projectile
    57   Vector offsetVel;                    //!< offset velocity TEMP
     50  float          speed;                     //!< this is the speed of the projectile
     51  float          currentLifeTime;           //!< this is the time, the projectile exists in this world (incremented by tick)
     52  float          ttl;                       //!< time to life, after this time, the projectile will garbage collect itself
     53  Vector*        flightDirection;           //!< direction in which the shoot flights
     54  Weapon*        weapon;                    //!< weapon the shoot belongs to
     55
     56  Vector         velocity;                  //!< velocity of the projectile
     57  Vector         offsetVel;                 //!< offset velocity TEMP
    5858};
    5959
Note: See TracChangeset for help on using the changeset viewer.