1 #ifndef CORE_MAPS_WEATHER_THUNDER_HPP
2 #define CORE_MAPS_WEATHER_THUNDER_HPP
4 #include <BLIB/Audio.hpp>
5 #include <BLIB/Resources.hpp>
6 #include <SFML/Graphics.hpp>
27 Thunder(
bool enabled,
bool frequent);
48 const float minInterval;
49 const float maxInterval;
50 float timeSinceLastThunder;
51 bl::audio::AudioSystem::Handle sound;
Core classes and functionality for both the editor and game.
Simple helper class for creating thunder in different weather types.
void stop()
Prevents further thunder and fades out current strike if present.
void update(float dt)
Update the thunder.
~Thunder()
Stops the thunder sound.
Thunder(bool enabled, bool frequent)
Construct a new Thunder object.