#include <Emitter.h>
Inheritance diagram for ParticleSystems::Emitter:
Public Types | |
enum | PARTICLETYPE { POINT, IMAGE, STRIKE } |
A public enum. More... | |
Public Member Functions | |
Emitter (int SYSID, Solver *s, PARTICLETYPE type, GraphicsLib::Vector initVel, GraphicsLib::Colour initialColor, GLfloat pSize) | |
The Constructor. | |
Emitter (int SYSID, Solver *s, PARTICLETYPE type, GraphicsLib::Vector initVel, GraphicsLib::Colour initialColor, GLfloat pSize, char *TexName) | |
The Constructor. | |
virtual | ~Emitter () |
The Destructor. | |
virtual Particle * | emittParticles (void)=0 |
An abstract Function. | |
virtual void | reBirth (Particle *p)=0 |
An abstract Function. | |
Public Attributes | |
PARTICLETYPE | type |
A public variable. | |
Texture | texture |
A public variable. | |
GLfloat | particleLife |
A public variable. | |
GLfloat | particleSize |
A public variable. | |
GLfloat | particleSizeFlare |
A public variable. | |
GraphicsLib::Vector | initialVelocity |
A public Variable. | |
GraphicsLib::Colour | initialColor |
A public Variable. | |
GraphicsLib::Colour | flareColor |
A public Variable. | |
Solver * | solver |
A public Variable. | |
Protected Attributes | |
int | SYSID |
A protected Variable. | |
TGALoader * | loader |
A protected Variable. | |
Private Member Functions | |
void | initEmitter () |
A private Function. |
The Emitter Class is the Superclass for all Emitters. The functionality of a Emitter is to initialise new Particles or reBirth dead Particles.
Definition at line 30 of file Emitter.h.
|
A public enum. Defines the possible types a Particle can be namely Point, Image, and Strike |
|
The Constructor. Constructs a new Emitter
Definition at line 10 of file Emitter.cpp. References initEmitter(), initialColor, initialVelocity, particleSize, solver, and type. |
|
The Constructor. Constructs a new Emitter with a Texture
Definition at line 25 of file Emitter.cpp. References initEmitter(), initialColor, initialVelocity, loader, ParticleSystems::TGALoader::LoadTGA(), particleSize, solver, texture, and type. |
|
The Destructor. Destructs this Emitter Definition at line 44 of file Emitter.cpp. |
|
An abstract Function. Emitts a new Particle according to the values
Implemented in ParticleSystems::PlanarEmitter, and ParticleSystems::PointEmitter. Referenced by ParticleSystems::ParticleSystem::newParticle(). |
|
A private Function. Initialises the Emitter. Sets some default values. No flare for Size and Colour. Definition at line 47 of file Emitter.cpp. References flareColor, particleLife, and particleSizeFlare. Referenced by Emitter(). |
|
An abstract Function. Reinitialises the given Particle as it would be newly created
Implemented in ParticleSystems::PlanarEmitter, and ParticleSystems::PointEmitter. Referenced by ParticleSystems::ParticleSystem::newParticle(). |
|
A public Variable. The flare Colour of the particle to be emitted Definition at line 140 of file Emitter.h. Referenced by fire(), initEmitter(), multiCollision(), and smoke(). |
|
A public Variable. Inital colour of the particle to be emitted Definition at line 134 of file Emitter.h. Referenced by Emitter(). |
|
A public Variable. Inital velocity of the particle to be emitted Definition at line 128 of file Emitter.h. Referenced by Emitter(). |
|
A protected Variable. The TGALoader for ImgParticles Definition at line 166 of file Emitter.h. Referenced by Emitter(). |
|
A public variable. The particleLife Definition at line 110 of file Emitter.h. Referenced by fire(), initEmitter(), multiCollision(), and smoke(). |
|
A public variable. The Particle size Definition at line 116 of file Emitter.h. Referenced by Emitter(). |
|
A public variable. The Particle flare size Definition at line 122 of file Emitter.h. Referenced by fire(), initEmitter(), and smoke(). |
|
A public Variable. Definition at line 146 of file Emitter.h. Referenced by Emitter(). |
|
A protected Variable. The current ID of the ParticleSystem this Emitter belongs to |
|
A public variable. Stores the texture for the ImgParticle Definition at line 104 of file Emitter.h. Referenced by ParticleSystems::ParticleSystem::draw(), and Emitter(). |
|
A public variable. Stores the Particle type of this emitter Definition at line 98 of file Emitter.h. Referenced by ParticleSystems::ParticleSystem::draw(), and Emitter(). |