1 #ifndef CORE_MAPS_WEATHER_SANDSTORM_HPP
2 #define CORE_MAPS_WEATHER_SANDSTORM_HPP
6 #include <BLIB/Particles.hpp>
50 virtual void start(bl::engine::Engine& engine, bl::rc::RenderTarget& renderTarget,
56 virtual void stop()
override;
61 virtual bool stopped()
const override;
68 virtual void update(
float dt)
override;
71 bl::engine::Engine* engine;
72 bl::rc::res::TextureRef sandTxtr;
73 bl::rc::res::TextureRef swirlTxtr;
74 bl::pcl::ParticleManager<sandstorm::Sand>* sand;
75 bl::pcl::ParticleManager<sandstorm::Swirl>* swirls;
Core classes and functionality for both the editor and game.
core::map::weather::sandstorm::Swirl Swirl
core::map::weather::sandstorm::Sand Sand
The primary map class that represents a usable map in the game.
Base class for all weather types.
virtual bool stopped() const override
Returns true if the sandstorm is fully stopped, false if stopping.
virtual void update(float dt) override
Updates the sandstorm.
virtual void start(bl::engine::Engine &engine, bl::rc::RenderTarget &renderTarget, Map &map) override
Starts the sandstorm.
Sandstorm()
Creates the sandstorm.
virtual void stop() override
Stops the sandstorm.
virtual ~Sandstorm()
Destroy the Sandstorm object.
virtual Weather::Type type() const override
Returns Sandstorm.