L_ExplosionEffect Class Reference

#include <L_ExplosionEffect.h>

Inheritance diagram for L_ExplosionEffect:

L_ParticleEffect List of all members.

Detailed Description

Explosion effect, suitable to be used for explosion, smoking effects.

Public Member Functions

 L_ExplosionEffect (int x, int y, int period_t, int min_particles_t, int max_particles_t, L_REAL explosion_level_t)
 L_ExplosionEffect (const L_ExplosionEffect &cpy)
void set_min_max_particle (int min_par, int max_par)
void set_speed_distortion (L_REAL speed_dis_t)
void set_explosion_level (L_REAL level)
virtual L_ParticleEffectnew_clone (void)

Constructor & Destructor Documentation

L_ExplosionEffect int  x,
int  y,
int  period_t,
int  min_particles_t,
int  max_particles_t,
L_REAL  explosion_level_t

period_t : time(milisec) interval between two emissions.
min_particles_t, max_particles : minimun and maximun number of particles to be emitted in a period.
explosion_level_t : initial speed for particles.

L_ExplosionEffect const L_ExplosionEffect cpy  ) 

Copy contructor

Member Function Documentation

void set_min_max_particle int  min_par,
int  max_par

Set minimun and maximun number of particles to be emitted in a period.

void set_speed_distortion L_REAL  speed_dis_t  ) 

Set speed distortion to particles. The larger "speed_dis_t", the greater speed difference to be applied for each particle.

virtual L_ParticleEffect* new_clone void   )  [virtual]

Create a clone this particle effect.

Implements L_ParticleEffect.

logo LinearParticle Documentation © 2006-2007 by Wong Chin Foo.
Generated on 8 Jun 2007 by doxygen 1.4.6-NO