51 void update(
int milliseconds);
void changeTo(weatherTypes weather)
changes to weather of given type; parameters are randomized
Weather(void)
make a default (clean) weather
static const size_t MAX_PARTICLES
void clearParticles(void)
Just a shared methods for ctors to initialize the weather.
particle particles[MAX_PARTICLES]
void update(int milliseconds)
Updates weather for the time passed; handles particle creation/removal automatically.
void setDefaults(void)
Sets clean weather, but generate some parameters usable for easily changing it into the worse varieti...
void render(void)
Draws weather effects.