Peoplemon  0.1.0
Peoplemon 3 game source documentation
Classes | Public Member Functions | Static Public Member Functions | Protected Attributes | List of all members
game::state::Evolution Class Reference

Game state for when a Peoplemon evolves into another one. More...

#include <Evolution.hpp>

+ Inheritance diagram for game::state::Evolution:

Classes

struct  Spark
 

Public Member Functions

virtual ~Evolution ()=default
 Destroy the Evolution state. More...
 
const char * name () const override
 Returns "Evolution". More...
 
virtual void activate (bl::engine::Engine &engine) override
 Subscribes to player input. More...
 
virtual void deactivate (bl::engine::Engine &engine) override
 Unsubscribes from player input. More...
 
virtual void update (bl::engine::Engine &engine, float dt, float) override
 Updates the evolution process. More...
 

Static Public Member Functions

static bl::engine::State::Ptr create (core::system::Systems &systems, core::pplmn::OwnedPeoplemon &ppl)
 

Protected Attributes

core::system::Systemssystems
 

Detailed Description

Game state for when a Peoplemon evolves into another one.

Definition at line 18 of file Evolution.hpp.

Constructor & Destructor Documentation

◆ ~Evolution()

virtual game::state::Evolution::~Evolution ( )
virtualdefault

Destroy the Evolution state.

Member Function Documentation

◆ activate()

void game::state::Evolution::activate ( bl::engine::Engine &  engine)
overridevirtual

Subscribes to player input.

Parameters
engineThe game engine

Implements game::state::State.

Definition at line 106 of file Evolution.cpp.

◆ create()

bl::engine::State::Ptr game::state::Evolution::create ( core::system::Systems systems,
core::pplmn::OwnedPeoplemon ppl 
)
static

Definition at line 68 of file Evolution.cpp.

◆ deactivate()

void game::state::Evolution::deactivate ( bl::engine::Engine &  engine)
overridevirtual

Unsubscribes from player input.

Parameters
engineThe game engine

Implements game::state::State.

Definition at line 132 of file Evolution.cpp.

◆ name()

const char * game::state::Evolution::name ( ) const
overridevirtual

Returns "Evolution".

Implements game::state::State.

Definition at line 104 of file Evolution.cpp.

◆ update()

void game::state::Evolution::update ( bl::engine::Engine &  engine,
float  dt,
float   
)
overridevirtual

Updates the evolution process.

Parameters
engineThe game engine
dtTime elapsed in seconds

Implements game::state::State.

Definition at line 138 of file Evolution.cpp.

Member Data Documentation

◆ fadeColor

float game::state::Evolution::fadeColor

Definition at line 89 of file Evolution.hpp.

◆ oscillateTime

float game::state::Evolution::oscillateTime

Definition at line 90 of file Evolution.hpp.

◆ systems

core::system::Systems& game::state::State::systems
protectedinherited

Definition at line 66 of file State.hpp.


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