1 #ifndef CORE_MAPS_WEATHER_FOG_HPP
2 #define CORE_MAPS_WEATHER_FOG_HPP
6 #include <BLIB/Particles.hpp>
51 virtual void start(bl::engine::Engine& engine, bl::rc::RenderTarget& renderTarget,
57 virtual void stop()
override;
62 virtual bool stopped()
const override;
69 virtual void update(
float dt)
override;
72 bl::engine::Engine* engine;
73 const float maxOpacity;
75 bl::rc::res::TextureRef fogTxtr;
76 bl::pcl::ParticleManager<fog::Particle>* particles;
Core classes and functionality for both the editor and game.
core::map::weather::fog::Particle Particle
The primary map class that represents a usable map in the game.
Base class for all weather types.
Weather type for thin or thick fog.
virtual void stop() override
Stops the fog.
virtual Weather::Type type() const override
Returns ThinFog or ThickFog.
Fog(bool thick)
Creates foggy weather.
virtual void update(float dt) override
Updates the fog.
virtual void start(bl::engine::Engine &engine, bl::rc::RenderTarget &renderTarget, Map &map) override
Starts the fog.
virtual bool stopped() const override
Returns true when the fog is fully dissipated, false if not.
virtual ~Fog()
No more fog.