Peoplemon  0.1.0
Peoplemon 3 game source documentation
Public Member Functions | List of all members
core::map::weather::Thunder Class Reference

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...
 

Detailed Description

Simple helper class for creating thunder in different weather types.

Definition at line 19 of file Thunder.hpp.

Constructor & Destructor Documentation

◆ Thunder()

core::map::weather::Thunder::Thunder ( bool  enabled,
bool  frequent 
)

Construct a new Thunder object.

Parameters
enabledTrue to make thunder, false to do nothing
frequentTrue for frequent thunder, false for less frequent

Definition at line 29 of file Thunder.cpp.

◆ ~Thunder()

core::map::weather::Thunder::~Thunder ( )

Stops the thunder sound.

Definition at line 40 of file Thunder.cpp.

Member Function Documentation

◆ stop()

void core::map::weather::Thunder::stop ( )

Prevents further thunder and fades out current strike if present.

Definition at line 42 of file Thunder.cpp.

◆ update()

void core::map::weather::Thunder::update ( float  dt)

Update the thunder.

Parameters
dtTime elapsed in seconds since last call to update()

Definition at line 44 of file Thunder.cpp.


The documentation for this class was generated from the following files: