#pragma once #include #include #include #include "Particle.hpp" #include class ParticleEmitter { public: std::vector particles; struct Position { int x; int y; } position; int maxParticles; float emissionRate; float elapsedTime; ParticleEmitter(int maxParticles, float emissionRate); void update(float deltaTime); private: void emitParticle(); float randFloat(float minangle, float maxangle, float minVel, float maxVel); };