#include <L_ParticleEffect.h>
Inheritance diagram for L_ParticleEffect:

Public Member Functions | |
| L_ParticleEffect (int period_t, int x, int y) | |
| L_ParticleEffect (const L_ParticleEffect &cpy) | |
| virtual | ~L_ParticleEffect () |
| int | add (L_Particle *fl_p, L_REAL prob=-1) |
| void | set_velocity (const L_Vector &v_t) |
| void | set_velocity (L_REAL x_length, L_REAL y_length) |
| void | set_position (L_REAL x, L_REAL y) |
| void | set_rotation_distortion (L_REAL rotation_dis) |
| void | set_size_distortion (L_REAL size_dis) |
| void | set_life_distortion (int life_dis) |
| void | set_life (int effect_life) |
| void | set_follow_shooting (bool flag=true) |
| void | set_addit_vector (const L_Vector &v_t) |
| void | set_period (int millisecond) |
| L_REAL | get_x_pos (void) |
| L_REAL | get_y_pos (void) |
| int | get_particle_num (void) |
| int | get_life (void) |
| int | get_period (void) |
| void | trigger (void) |
| void | initialize (void) |
| void | run (int time_elapesed_t) |
| void | draw (int x_shift=0, int y_shift=0) |
| virtual L_ParticleEffect * | new_clone (void)=0 |
| virtual void | activate_particle (int time_elapesed_t) |
Public Attributes | |
| std::list< L_Particle * > | particle_list |
| L_REAL | x_pos |
| L_REAL | y_pos |
|
||||||||||||||||
|
period : time(milisec) interval between two emissions, 1 <= period < infinity |
|
|
Copy contructor. |
|
|
Destructor |
|
||||||||||||
|
Add a particle type for the effect and probability for the particle to be chosen for every emission. |
|
|
Copy effect's velocity from "v_t". |
|
||||||||||||
|
Set effect's velocity(vector) using X length and Y length. |
|
||||||||||||
|
Set position. |
|
|
Apply distortion for particles' initial rotation (in radian). |
|
|
Apply distortion for particles' size. |
|
|
Apply distortion for particles' life. |
|
|
Set the effect's life, L_INFINITE_LIFE for infinite life. |
|
|
Set the particles facing to the direction of its initial velocity. |
|
|
Add additional vector for emitted particle, can be used for interia effect |
|
|
Set period for emission in milli second. |
|
|
Trigger particle emission. |
|
|
Initialization, must be called (once) before calling run(int). |
|
|
Create a clone this particle effect. Implemented in L_DroppingEffect, L_ExplosionEffect, and L_ShootingEffect. |
|
|
Run all particles in the list( by calling run(int) function of particles ) with certain time. |
LinearParticle Documentation © 2006-2007 by Wong Chin Foo.