Weather type for rainy days. Handles light and hard rain and owns thunder if need be.
More...
#include <Rain.hpp>
|
| Rain (bool hard, bool thunder) |
| Construct a new Rain system. More...
|
|
virtual | ~Rain () |
| Destroy the Rain. More...
|
|
virtual Weather::Type | type () const override |
| One of LightRain, LightRainThunder, HardRain, or HardRainThunder. More...
|
|
virtual void | start (bl::engine::Engine &engine, bl::rc::RenderTarget &renderTarget, Map &map) override |
| Start the rain. More...
|
|
virtual void | stop () override |
| Stop the rain. More...
|
|
virtual bool | stopped () const override |
| Returns true when all rain is fallen after stop() is called. More...
|
|
virtual void | update (float dt) override |
| Updates the rain. More...
|
|
Weather type for rainy days. Handles light and hard rain and owns thunder if need be.
Definition at line 34 of file Rain.hpp.
◆ Rain()
core::map::weather::Rain::Rain |
( |
bool |
hard, |
|
|
bool |
thunder |
|
) |
| |
Construct a new Rain system.
- Parameters
-
hard | True to make hard rain, false for light |
thunder | True for periodic thunder, false for no thunder |
Definition at line 196 of file Rain.cpp.
◆ ~Rain()
core::map::weather::Rain::~Rain |
( |
| ) |
|
|
virtual |
◆ start()
void core::map::weather::Rain::start |
( |
bl::engine::Engine & |
engine, |
|
|
bl::rc::RenderTarget & |
renderTarget, |
|
|
Map & |
map |
|
) |
| |
|
overridevirtual |
Start the rain.
- 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 220 of file Rain.cpp.
◆ stop()
void core::map::weather::Rain::stop |
( |
| ) |
|
|
overridevirtual |
◆ stopped()
bool core::map::weather::Rain::stopped |
( |
| ) |
const |
|
overridevirtual |
◆ type()
◆ update()
void core::map::weather::Rain::update |
( |
float |
dt | ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files: