![]() |
Peoplemon
0.1.0
Peoplemon 3 game source documentation
|
Simple helper class for creating thunder in different weather types. More...
#include <Thunder.hpp>
Public Member Functions | |
Thunder (bool enabled, bool frequent) | |
Construct a new Thunder object. More... | |
~Thunder () | |
Stops the thunder sound. More... | |
void | stop () |
Prevents further thunder and fades out current strike if present. More... | |
void | update (float dt) |
Update the thunder. More... | |
Simple helper class for creating thunder in different weather types.
Definition at line 19 of file Thunder.hpp.
core::map::weather::Thunder::Thunder | ( | bool | enabled, |
bool | frequent | ||
) |
Construct a new Thunder object.
enabled | True to make thunder, false to do nothing |
frequent | True for frequent thunder, false for less frequent |
Definition at line 29 of file Thunder.cpp.
core::map::weather::Thunder::~Thunder | ( | ) |
Stops the thunder sound.
Definition at line 40 of file Thunder.cpp.
void core::map::weather::Thunder::stop | ( | ) |
Prevents further thunder and fades out current strike if present.
Definition at line 42 of file Thunder.cpp.
void core::map::weather::Thunder::update | ( | float | dt | ) |
Update the thunder.
dt | Time elapsed in seconds since last call to update() |
Definition at line 44 of file Thunder.cpp.