hoa_video::private_video::Particle Class Reference

this is the structure we use to represent a particle More...

#include <particle.h>

Collaboration diagram for hoa_video::private_video::Particle:

Collaboration graph
[legend]
List of all members.

Public Attributes

float acceleration_x
float acceleration_y
Color color
 color
float combined_velocity_x
float combined_velocity_y
Color current_color_variation
ParticleKeyframecurrent_keyframe
 keep track of current and next keyframes
float current_rotation_speed_variation
float current_size_variation_x
 property variations
float current_size_variation_y
float damping
float lifetime
 lifetime (when the particle is supposed to die)
Color next_color_variation
ParticleKeyframenext_keyframe
float next_rotation_speed_variation
float next_size_variation_x
float next_size_variation_y
float radial_acceleration
float rotation_angle
 current rotation angle
float rotation_direction
float rotation_speed
 rotation speed
float size_x
 size
float size_y
float tangential_acceleration
float time
 seconds since particle was spawned
float velocity_x
 velocity
float velocity_y
float wave_half_amplitude
float wave_length_coefficient
float wind_velocity_x
float wind_velocity_y
float x
 position
float y

Detailed Description

this is the structure we use to represent a particle

***************************************************************************

Definition at line 76 of file particle.h.


Member Data Documentation

float hoa_video::private_video::Particle::acceleration_x

acceleration, i.e. change in velocity per second. The most common use for this is for simulating gravity. If you have multiple constant forces acting on particles, then this vector should be the sum of those forces.

Definition at line 126 of file particle.h.

float hoa_video::private_video::Particle::acceleration_y

Definition at line 127 of file particle.h.

Color hoa_video::private_video::Particle::color

color

Definition at line 98 of file particle.h.

float hoa_video::private_video::Particle::combined_velocity_x

store the combined velocity (particle + wind + wave) so we only have to calculate it once

Definition at line 94 of file particle.h.

float hoa_video::private_video::Particle::combined_velocity_y

Definition at line 95 of file particle.h.

Color hoa_video::private_video::Particle::current_color_variation

Definition at line 161 of file particle.h.

ParticleKeyframe* hoa_video::private_video::Particle::current_keyframe

keep track of current and next keyframes

Definition at line 165 of file particle.h.

float hoa_video::private_video::Particle::current_rotation_speed_variation

Definition at line 159 of file particle.h.

float hoa_video::private_video::Particle::current_size_variation_x

property variations

Definition at line 155 of file particle.h.

float hoa_video::private_video::Particle::current_size_variation_y

Definition at line 156 of file particle.h.

float hoa_video::private_video::Particle::damping

damping- the particle's velocity gets multiplied by this value each second. So for example, a damping of .6 means that a particle slows down by 40% each second.

Definition at line 148 of file particle.h.

float hoa_video::private_video::Particle::lifetime

lifetime (when the particle is supposed to die)

Definition at line 110 of file particle.h.

Color hoa_video::private_video::Particle::next_color_variation

Definition at line 162 of file particle.h.

ParticleKeyframe* hoa_video::private_video::Particle::next_keyframe

Definition at line 166 of file particle.h.

float hoa_video::private_video::Particle::next_rotation_speed_variation

Definition at line 160 of file particle.h.

float hoa_video::private_video::Particle::next_size_variation_x

Definition at line 157 of file particle.h.

float hoa_video::private_video::Particle::next_size_variation_y

Definition at line 158 of file particle.h.

float hoa_video::private_video::Particle::radial_acceleration

radial acceleration- acceleration towards (negative) or away (positive) from an attractor. Note that the default attractor is the emitter position. The client can set an attractor for the entire effect by calling ParticleEffect::SetAttractor(x,y)

Definition at line 137 of file particle.h.

float hoa_video::private_video::Particle::rotation_angle

current rotation angle

Definition at line 101 of file particle.h.

float hoa_video::private_video::Particle::rotation_direction

when a particle is created, it is given a rotation direction: either 1 (clockwise) or -1 (counterclockwise)

Definition at line 152 of file particle.h.

float hoa_video::private_video::Particle::rotation_speed

rotation speed

Definition at line 104 of file particle.h.

float hoa_video::private_video::Particle::size_x

size

Definition at line 85 of file particle.h.

float hoa_video::private_video::Particle::size_y

Definition at line 86 of file particle.h.

float hoa_video::private_video::Particle::tangential_acceleration

tangential acceleration- just like normal acceleration, except it is applied in the tangent direction. positive = clockwise.

Definition at line 131 of file particle.h.

float hoa_video::private_video::Particle::time

seconds since particle was spawned

Definition at line 107 of file particle.h.

float hoa_video::private_video::Particle::velocity_x

velocity

Definition at line 89 of file particle.h.

float hoa_video::private_video::Particle::velocity_y

Definition at line 90 of file particle.h.

float hoa_video::private_video::Particle::wave_half_amplitude

half the amplitude of the wave. We store half the amplitude instead of the whole amplitude because that's what gets multiplied with the sin function

Definition at line 120 of file particle.h.

float hoa_video::private_video::Particle::wave_length_coefficient

this is 2 * pi / wavelength. The reason we store this weird number instead of the wavelength is because that's what we will ultimately plug into the sin function

Definition at line 115 of file particle.h.

float hoa_video::private_video::Particle::wind_velocity_x

wind velocity. this gets added to the particle's velocity each frame. note that different particles might also have a slightly different wind velocity, if the system has some wind velocity variation

Definition at line 142 of file particle.h.

float hoa_video::private_video::Particle::wind_velocity_y

Definition at line 143 of file particle.h.

float hoa_video::private_video::Particle::x

position

Definition at line 81 of file particle.h.

float hoa_video::private_video::Particle::y

Definition at line 82 of file particle.h.


The documentation for this class was generated from the following file:
Generated on Fri Jul 6 23:16:49 2007 for Hero of Allacrost by  doxygen 1.5.1