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

Makes sunny weather. More...

#include <Sunny.hpp>

+ Inheritance diagram for core::map::weather::Sunny:

Public Member Functions

 Sunny ()
 Construct a new Sunny object. More...
 
virtual ~Sunny ()=default
 Destroy the Sunny object. More...
 
virtual Weather::Type type () const override
 Returns Sunny. More...
 
virtual void start (bl::engine::Engine &engine, bl::rc::RenderTarget &renderTarget, Map &map) override
 Starts the sunny weather. More...
 
virtual void stop () override
 Stops the sunny weather. More...
 
virtual bool stopped () const override
 Returns true when the sun is finished fading. More...
 
virtual void update (float dt) override
 Updates the sunny weather. More...
 

Detailed Description

Makes sunny weather.

Definition at line 21 of file Sunny.hpp.

Constructor & Destructor Documentation

◆ Sunny()

core::map::weather::Sunny::Sunny ( )

Construct a new Sunny object.

Definition at line 30 of file Sunny.cpp.

◆ ~Sunny()

virtual core::map::weather::Sunny::~Sunny ( )
virtualdefault

Destroy the Sunny object.

Member Function Documentation

◆ start()

void core::map::weather::Sunny::start ( bl::engine::Engine &  engine,
bl::rc::RenderTarget &  renderTarget,
Map map 
)
overridevirtual

Starts the sunny weather.

Parameters
engineThe game engine instance
renderTargetThe render target the weather will be rendered to
mapThe map the weather is in

Implements core::map::weather::Base.

Definition at line 37 of file Sunny.cpp.

◆ stop()

void core::map::weather::Sunny::stop ( )
overridevirtual

Stops the sunny weather.

Implements core::map::weather::Base.

Definition at line 44 of file Sunny.cpp.

◆ stopped()

bool core::map::weather::Sunny::stopped ( ) const
overridevirtual

Returns true when the sun is finished fading.

Implements core::map::weather::Base.

Definition at line 46 of file Sunny.cpp.

◆ type()

Weather::Type core::map::weather::Sunny::type ( ) const
overridevirtual

Returns Sunny.

Implements core::map::weather::Base.

Definition at line 35 of file Sunny.cpp.

◆ update()

void core::map::weather::Sunny::update ( float  dt)
overridevirtual

Updates the sunny weather.

Parameters
dtTime elapsed in seconds since last call to update

Implements core::map::weather::Base.

Definition at line 48 of file Sunny.cpp.


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