Weather type for thin or thick fog.
More...
#include <Fog.hpp>
|
| Fog (bool thick) |
| Creates foggy weather. More...
|
|
virtual | ~Fog () |
| No more fog. More...
|
|
virtual Weather::Type | type () const override |
| Returns ThinFog or ThickFog. More...
|
|
virtual void | start (bl::engine::Engine &engine, bl::rc::RenderTarget &renderTarget, Map &map) override |
| Starts the fog. More...
|
|
virtual void | stop () override |
| Stops the fog. More...
|
|
virtual bool | stopped () const override |
| Returns true when the fog is fully dissipated, false if not. More...
|
|
virtual void | update (float dt) override |
| Updates the fog. More...
|
|
Weather type for thin or thick fog.
Definition at line 25 of file Fog.hpp.
◆ Fog()
core::map::weather::Fog::Fog |
( |
bool |
thick | ) |
|
Creates foggy weather.
- Parameters
-
thick | True for thick fog, false for thin fog |
Definition at line 237 of file Fog.cpp.
◆ ~Fog()
core::map::weather::Fog::~Fog |
( |
| ) |
|
|
virtual |
No more fog.
Definition at line 244 of file Fog.cpp.
◆ start()
void core::map::weather::Fog::start |
( |
bl::engine::Engine & |
engine, |
|
|
bl::rc::RenderTarget & |
renderTarget, |
|
|
Map & |
map |
|
) |
| |
|
overridevirtual |
Starts the fog.
- 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 252 of file Fog.cpp.
◆ stop()
void core::map::weather::Fog::stop |
( |
| ) |
|
|
overridevirtual |
◆ stopped()
bool core::map::weather::Fog::stopped |
( |
| ) |
const |
|
overridevirtual |
◆ type()
◆ update()
void core::map::weather::Fog::update |
( |
float |
dt | ) |
|
|
overridevirtual |
The documentation for this class was generated from the following files: