|
The Game Engine
1
|
Particle System manager. More...
#include <ParticleSystem.h>
Collaboration diagram for ParticleSystem::Particle:Public Member Functions | |
| Particle () | |
Public Attributes | |
| ParticleSystem * | Parent |
| The particle system that produced the particle. More... | |
| Point2D | Position |
| The position of the particle relative to the particle system's position. More... | |
| Point2D | Velocity |
| The vector that the particle will be displaced by every game loop. More... | |
| float | Size |
| The size of the particle, in pixels. More... | |
| Color | Color |
| The color that the particle is modulated by. More... | |
| int | Life |
| Number of frames until the particle will be destroyed. More... | |
Particle System manager.
This class is tasked with the following:
Particles are created only using SpawnParticles(int)
Definition at line 30 of file ParticleSystem.h.
| ParticleSystem::Particle::Particle | ( | ) |
Definition at line 7 of file ParticleSystem.cpp.
| Color ParticleSystem::Particle::Color |
The color that the particle is modulated by.
Definition at line 48 of file ParticleSystem.h.
| int ParticleSystem::Particle::Life |
Number of frames until the particle will be destroyed.
Definition at line 51 of file ParticleSystem.h.
| ParticleSystem* ParticleSystem::Particle::Parent |
The particle system that produced the particle.
Definition at line 36 of file ParticleSystem.h.
| Point2D ParticleSystem::Particle::Position |
The position of the particle relative to the particle system's position.
Definition at line 39 of file ParticleSystem.h.
| float ParticleSystem::Particle::Size |
The size of the particle, in pixels.
Definition at line 45 of file ParticleSystem.h.
| Point2D ParticleSystem::Particle::Velocity |
The vector that the particle will be displaced by every game loop.
Definition at line 42 of file ParticleSystem.h.