1 #ifndef CORE_MAPS_WEATHER_SNOW_HPP
2 #define CORE_MAPS_WEATHER_SNOW_HPP
7 #include <BLIB/Particles.hpp>
9 #include <SFML/Graphics.hpp>
36 Snow(
bool hard,
bool thunder);
55 virtual void start(bl::engine::Engine& engine, bl::rc::RenderTarget& renderTarget,
61 virtual void stop()
override;
66 virtual bool stopped()
const override;
73 virtual void update(
float dt)
override;
76 bl::engine::Engine* engine;
78 const unsigned int targetParticleCount;
79 const float fallSpeed;
82 bl::pcl::ParticleManager<snow::Snowflake>* particles;
85 bl::rc::res::TextureRef snowTxtr;
Core classes and functionality for both the editor and game.
core::map::weather::snow::Snowflake Snowflake
The primary map class that represents a usable map in the game.
Base class for all weather types.
virtual void stop() override
Stops the snow.
virtual Weather::Type type() const override
One of LightSnow, LightSnowThunder, HardSnow, HardSnowThunder.
virtual bool stopped() const override
Returns true when no snow is left after a call to stop()
Snow(bool hard, bool thunder)
Create snowy weather.
virtual void start(bl::engine::Engine &engine, bl::rc::RenderTarget &renderTarget, Map &map) override
Start the snow.
virtual void update(float dt) override
Updates all the flakes and spawns more.
virtual ~Snow()
Destroy the Snow object.
Simple helper class for creating thunder in different weather types.