Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Jun 2, 2005, 5:01:50 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: particles documented

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/particles/particle_emitter.h

    r4437 r4478  
    1010
    1111// FORWARD DEFINITION
    12 struct Particle;
    1312class ParticleSystem;
    1413class TiXmlElement;
    1514
    1615//! The form of the Emitter to emit from
    17 typedef enum EMITTER_TYPE {EMITTER_DOT   = 1,
    18                            EMITTER_PLANE = 2,
    19                            EMITTER_SPHERE= 4,
    20                            EMITTER_CUBE  = 8};
     16typedef enum EMITTER_TYPE { EMITTER_DOT   = 1,
     17                            EMITTER_PLANE = 2,
     18                            EMITTER_SPHERE= 4,
     19                            EMITTER_CUBE  = 8 };
    2120
    2221//! A class to handle an Emitter.
     
    5756  void debug(void);
    5857
     58
    5959 private:
    60   EMITTER_TYPE type;    //!< The type of emitter this is
    61   float emitterSize;    //!< The size of the emitter (not for EMITTER_DOT)
    62   Vector direction;     //!< emition direction
    63   float angle;          //!< max angle from the direction of the emitter
    64   float randomAngle;    //!< random emission angle (angle +- angleRandom is the emitted angle.
    65   float emissionRate;   //!< amount of particles per seconds emitted by emitter.
    66   float velocity;       //!< the initial speed of a Particles.
    67   float randomVelocity; //!< the random variation from the initial Speed.
     60  EMITTER_TYPE    type;              //!< The type of emitter this is
     61  float           emitterSize;       //!< The size of the emitter (not for EMITTER_DOT)
     62  Vector          direction;         //!< emition direction
     63  float           angle;             //!< max angle from the direction of the emitter
     64  float           randomAngle;       //!< random emission angle (angle +- angleRandom is the emitted angle.
     65  float           emissionRate;      //!< amount of particles per seconds emitted by emitter.
     66  float           velocity;          //!< the initial speed of a Particles.
     67  float           randomVelocity;    //!< the random variation from the initial Speed.
    6868
    69   float saveTime;       //!< The time that was missing by the last Tick (otherwise there would be no emission when framefate is too big).
     69  float           saveTime;          //!< The time that was missing by the last Tick (otherwise there would be no emission when framefate is too big).
    7070};
    7171
Note: See TracChangeset for help on using the changeset viewer.