As I mentioned earlier, when we discussed the Emitter class, it manages and emits particles. In a typical particle system, you may have many emitters. In our game, we will eventually allow for multiple emitters, but in this tool, we will keep to a single emitter for simplicity. We have four functions defined in the Emitter class, and we will be changing three of them. The only function that will not require a change is the GetFreeParticle function. If you don't remember, GetFreeParticle loops through m_particle_pool (the particle pool attribute) looking for particles that are not marked as active (particle->m_active == false). If it finds one, it returns that particle. If not, it returns null.





















































