Definition: Particle.h:38
Particle(float size, int age, unsigned char opacity, unsigned char r, unsigned char g, unsigned char b)
Create particle with size (pixels), age (in ticks), opacity (0-255) and rgb color.
virtual int serialize(std::stringstream *p_ss, unsigned int attr=0) override
Log warning if trying to serialize particles.
int m_age
Age to live (in ticks).
Definition: Particle.h:41
int eventHandler(const Event *p_e) override
Handle event (handles step to age and out delete).
virtual int deserialize(std::stringstream *p_ss, unsigned int *p_a) override
Log warning if trying to deserialize particles.
Particle(float size, int age, unsigned char opacity, Color color)
Create particle with size (pixels), age (in ticks), opacity (0-255) and Dragonfly color.