The Game Engine  1
ParticleSystem::Particle Class Reference

Particle System manager. More...

#include <ParticleSystem.h>

+ Collaboration diagram for ParticleSystem::Particle:

Public Member Functions

 Particle ()
 

Public Attributes

ParticleSystemParent
 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...
 

Detailed Description

Particle System manager.

This class is tasked with the following:

  • Spawning Particles

Particles are created only using SpawnParticles(int)

Definition at line 30 of file ParticleSystem.h.

Constructor & Destructor Documentation

ParticleSystem::Particle::Particle ( )

Definition at line 7 of file ParticleSystem.cpp.

Member Data Documentation

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.


The documentation for this class was generated from the following files: