Snow weather system.
More...
#include <Snow.hpp>
|
| Snow (bool hard, bool thunder) |
| Create snowy weather. More...
|
|
virtual | ~Snow () |
| Destroy the Snow object. More...
|
|
virtual Weather::Type | type () const override |
| One of LightSnow, LightSnowThunder, HardSnow, HardSnowThunder. More...
|
|
virtual void | start (bl::engine::Engine &engine, bl::rc::RenderTarget &renderTarget, Map &map) override |
| Start the snow. More...
|
|
virtual void | stop () override |
| Stops the snow. More...
|
|
virtual bool | stopped () const override |
| Returns true when no snow is left after a call to stop() More...
|
|
virtual void | update (float dt) override |
| Updates all the flakes and spawns more. More...
|
|
Snow weather system.
Definition at line 28 of file Snow.hpp.
◆ Snow()
core::map::weather::Snow::Snow |
( |
bool |
hard, |
|
|
bool |
thunder |
|
) |
| |
Create snowy weather.
- Parameters
-
hard | True for hard snow, false for light |
thunder | True to enable thunder, false for no thunder |
Definition at line 197 of file Snow.cpp.
◆ ~Snow()
core::map::weather::Snow::~Snow |
( |
| ) |
|
|
virtual |
◆ start()
void core::map::weather::Snow::start |
( |
bl::engine::Engine & |
engine, |
|
|
bl::rc::RenderTarget & |
renderTarget, |
|
|
Map & |
map |
|
) |
| |
|
overridevirtual |
Start the snow.
- Parameters
-
engine | The game engine instance |
renderTarget | The render target the weather will be rendered to |
map | The map the weather is in |
Implements core::map::weather::Base.
Definition at line 214 of file Snow.cpp.
◆ stop()
void core::map::weather::Snow::stop |
( |
| ) |
|
|
overridevirtual |
◆ stopped()
bool core::map::weather::Snow::stopped |
( |
| ) |
const |
|
overridevirtual |
◆ type()
◆ update()
void core::map::weather::Snow::update |
( |
float |
dt | ) |
|
|
overridevirtual |
Updates all the flakes and spawns more.
- Parameters
-
dt | Time elapsed in seconds since last call to update |
Implements core::map::weather::Base.
Definition at line 242 of file Snow.cpp.
The documentation for this class was generated from the following files: