![]() |
Peoplemon
0.1.0
Peoplemon 3 game source documentation
|
Base class for all weather types. More...
#include <Base.hpp>
Public Member Functions | |
virtual | ~Base ()=default |
Destroy the Base object. More... | |
virtual Weather::Type | type () const =0 |
Returns the type of weather this is. More... | |
virtual void | update (float dt)=0 |
Update the weather. More... | |
virtual void | start (bl::engine::Engine &engine, bl::rc::RenderTarget &renderTarget, Map &map)=0 |
Start the weather using the initial area. More... | |
virtual void | stop ()=0 |
Stop the weather. More... | |
virtual bool | stopped () const =0 |
Returns true when the weather has completed stopping. More... | |
|
virtualdefault |
Destroy the Base object.
|
pure virtual |
Start the weather using the initial area.
engine | The game engine instance |
renderTarget | The render target the weather will be rendered to |
map | The map the weather is in |
Implemented in core::map::weather::Sunny, core::map::weather::Snow, core::map::weather::Sandstorm, core::map::weather::Rain, and core::map::weather::Fog.
|
pure virtual |
Stop the weather.
Implemented in core::map::weather::Sunny, core::map::weather::Snow, core::map::weather::Sandstorm, core::map::weather::Rain, and core::map::weather::Fog.
|
pure virtual |
Returns true when the weather has completed stopping.
Implemented in core::map::weather::Sunny, core::map::weather::Snow, core::map::weather::Sandstorm, core::map::weather::Rain, and core::map::weather::Fog.
|
pure virtual |
Returns the type of weather this is.
Implemented in core::map::weather::Sunny, core::map::weather::Snow, core::map::weather::Sandstorm, core::map::weather::Rain, and core::map::weather::Fog.
|
pure virtual |
Update the weather.
dt | Time elapsed in seconds since last call to update |
Implemented in core::map::weather::Sunny, core::map::weather::Snow, core::map::weather::Sandstorm, core::map::weather::Rain, and core::map::weather::Fog.