hoa_video::ParticleEmitter Class Reference

#include <particle_emitter.h>

Collaboration diagram for hoa_video::ParticleEmitter:

Collaboration graph
[legend]
List of all members.

Public Attributes

float _center_x
float _center_y
float _emission_rate
 depending on the emission mode, this specifies how many particles to emit each second
EMITTER_MODE _emitter_mode
 emitter mode- e.g. burst, always, one shot, looping
float _initial_speed
float _initial_speed_variation
float _inner_cone
bool _omnidirectional
 true if emitter should spit out particles in all directions
float _orientation
float _outer_cone
float _radius
 The radius of the emitter, for circular emitters.
EMITTER_SHAPE _shape
 shape of the emitter
EMITTER_SPIN _spin
 emitter spin- whether particles should rotate clockwise, counterclockwise, or mixed (random)
float _start_time
float _x
float _x2
 The second point/corner of the emitter, for line or rectangle emitters ONLY.
float _x_variation
 add some variation to the position of each particle
float _y
float _y2
float _y_variation

Detailed Description

Definition at line 92 of file particle_emitter.h.


Member Data Documentation

float hoa_video::ParticleEmitter::_center_x

position of the emitter's center. In many cases this is just the same thing as _x and _y, but we store it anyway because then if we have a rectangle shaped emitter, we don't have to calculate the midpoint every time we want to know where the center is

Definition at line 109 of file particle_emitter.h.

Referenced by hoa_video::private_video::TEMP_LoadEffectHelper().

float hoa_video::ParticleEmitter::_center_y

Definition at line 110 of file particle_emitter.h.

Referenced by hoa_video::private_video::TEMP_LoadEffectHelper().

float hoa_video::ParticleEmitter::_emission_rate

depending on the emission mode, this specifies how many particles to emit each second

Definition at line 148 of file particle_emitter.h.

Referenced by hoa_video::private_video::TEMP_LoadEffectHelper(), and hoa_video::private_video::ParticleSystem::Update().

EMITTER_MODE hoa_video::ParticleEmitter::_emitter_mode

emitter mode- e.g. burst, always, one shot, looping

Definition at line 156 of file particle_emitter.h.

Referenced by hoa_video::private_video::TEMP_LoadEffectHelper(), and hoa_video::private_video::ParticleSystem::Update().

float hoa_video::ParticleEmitter::_initial_speed

initial speed for particles. The unit is pixels. So, with a coordinate system which is 1024x768, a particle going from left to right with a speed of 512 pixels/sec could move across the screen in 2 seconds

Definition at line 141 of file particle_emitter.h.

Referenced by hoa_video::private_video::ParticleSystem::_RespawnParticle(), and hoa_video::private_video::TEMP_LoadEffectHelper().

float hoa_video::ParticleEmitter::_initial_speed_variation

variation in the initial speed (it would be boring if all particles had exactly the same speed)

Definition at line 145 of file particle_emitter.h.

Referenced by hoa_video::private_video::ParticleSystem::_RespawnParticle(), and hoa_video::private_video::TEMP_LoadEffectHelper().

float hoa_video::ParticleEmitter::_inner_cone

inner cone angle, used to create some "spread" in the particle emissions. Set this to zero if you want all particles to be emitted in exactly the same direction

Definition at line 136 of file particle_emitter.h.

Referenced by hoa_video::private_video::ParticleSystem::_RespawnParticle(), and hoa_video::private_video::TEMP_LoadEffectHelper().

bool hoa_video::ParticleEmitter::_omnidirectional

true if emitter should spit out particles in all directions

Definition at line 123 of file particle_emitter.h.

Referenced by hoa_video::private_video::ParticleSystem::_RespawnParticle(), and hoa_video::private_video::TEMP_LoadEffectHelper().

float hoa_video::ParticleEmitter::_orientation

if _omnidirectional is false, then this is the angle at which particles should be emitted. This angle is the same one as what is used for sinf(), e.g. zero is right, PI/2 is up, PI is left, 3PI/2 is down, etc.

Definition at line 128 of file particle_emitter.h.

Referenced by hoa_video::private_video::ParticleSystem::_RespawnParticle(), and hoa_video::private_video::TEMP_LoadEffectHelper().

float hoa_video::ParticleEmitter::_outer_cone

outer cone angle, used to create some "spread" in the particle emissions. Set this to zero if you want all particles to be emitted in exactly the same direction

Definition at line 132 of file particle_emitter.h.

Referenced by hoa_video::private_video::ParticleSystem::_RespawnParticle(), and hoa_video::private_video::TEMP_LoadEffectHelper().

float hoa_video::ParticleEmitter::_radius

The radius of the emitter, for circular emitters.

Definition at line 117 of file particle_emitter.h.

Referenced by hoa_video::private_video::ParticleSystem::_RespawnParticle(), and hoa_video::private_video::TEMP_LoadEffectHelper().

EMITTER_SHAPE hoa_video::ParticleEmitter::_shape

shape of the emitter

Definition at line 120 of file particle_emitter.h.

Referenced by hoa_video::private_video::ParticleSystem::_RespawnParticle(), and hoa_video::private_video::TEMP_LoadEffectHelper().

EMITTER_SPIN hoa_video::ParticleEmitter::_spin

emitter spin- whether particles should rotate clockwise, counterclockwise, or mixed (random)

Definition at line 159 of file particle_emitter.h.

Referenced by hoa_video::private_video::ParticleSystem::_RespawnParticle(), and hoa_video::private_video::TEMP_LoadEffectHelper().

float hoa_video::ParticleEmitter::_start_time

how many seconds to wait until emitting particles. Note that if you want a particle system to be active for 5 seconds, and start_time is 10 seconds, then you should make the system lifetime 15 seconds.

Definition at line 153 of file particle_emitter.h.

Referenced by hoa_video::private_video::TEMP_LoadEffectHelper().

float hoa_video::ParticleEmitter::_x

position of emitter, or in the case of line or rectangle emitters, this is one point/corner of the emitter

Definition at line 98 of file particle_emitter.h.

Referenced by hoa_video::private_video::ParticleSystem::_RespawnParticle(), and hoa_video::private_video::TEMP_LoadEffectHelper().

float hoa_video::ParticleEmitter::_x2

The second point/corner of the emitter, for line or rectangle emitters ONLY.

Definition at line 102 of file particle_emitter.h.

Referenced by hoa_video::private_video::ParticleSystem::_RespawnParticle(), and hoa_video::private_video::TEMP_LoadEffectHelper().

float hoa_video::ParticleEmitter::_x_variation

add some variation to the position of each particle

Definition at line 113 of file particle_emitter.h.

Referenced by hoa_video::private_video::ParticleSystem::_RespawnParticle(), and hoa_video::private_video::TEMP_LoadEffectHelper().

float hoa_video::ParticleEmitter::_y

Definition at line 99 of file particle_emitter.h.

Referenced by hoa_video::private_video::ParticleSystem::_RespawnParticle(), and hoa_video::private_video::TEMP_LoadEffectHelper().

float hoa_video::ParticleEmitter::_y2

Definition at line 103 of file particle_emitter.h.

Referenced by hoa_video::private_video::ParticleSystem::_RespawnParticle(), and hoa_video::private_video::TEMP_LoadEffectHelper().

float hoa_video::ParticleEmitter::_y_variation

Definition at line 114 of file particle_emitter.h.

Referenced by hoa_video::private_video::ParticleSystem::_RespawnParticle(), and hoa_video::private_video::TEMP_LoadEffectHelper().


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