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

Menu for displaying information about a specific peoplemon the player owns. More...

#include <PeoplemonInfo.hpp>

+ Inheritance diagram for game::state::PeoplemonInfo:

Public Member Functions

virtual ~PeoplemonInfo ()=default
 Destroy the Peoplemon Info object. More...
 
virtual const char * name () const override
 Returns "Peopledex". More...
 
virtual void activate (bl::engine::Engine &engine) override
 Activates the state. More...
 
virtual void deactivate (bl::engine::Engine &engine) override
 Deactivates the state. More...
 
virtual void update (bl::engine::Engine &engine, float dt, float) override
 Updates the state and menus and whatnot. More...
 

Static Public Member Functions

static bl::engine::State::Ptr create (core::system::Systems &systems, const core::pplmn::OwnedPeoplemon &ppl)
 Create a new PeoplemonInfo engine state. More...
 

Protected Attributes

core::system::Systemssystems
 

Detailed Description

Menu for displaying information about a specific peoplemon the player owns.

Definition at line 18 of file PeoplemonInfo.hpp.

Constructor & Destructor Documentation

◆ ~PeoplemonInfo()

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

Destroy the Peoplemon Info object.

Member Function Documentation

◆ activate()

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

Activates the state.

Parameters
engineThe game engine

Implements game::state::State.

Definition at line 239 of file PeoplemonInfo.cpp.

◆ create()

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

Create a new PeoplemonInfo engine state.

Parameters
systemsThe main game systems
pplThe peoplemon to display for
Returns
bl::engine::State::Ptr The new game state

Definition at line 24 of file PeoplemonInfo.cpp.

◆ deactivate()

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

Deactivates the state.

Parameters
engineThe game engine

Implements game::state::State.

Definition at line 279 of file PeoplemonInfo.cpp.

◆ name()

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

Returns "Peopledex".

Implements game::state::State.

Definition at line 237 of file PeoplemonInfo.cpp.

◆ update()

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

Updates the state and menus and whatnot.

Parameters
engineThe game engine
dtTime elapsed in seconds

Implements game::state::State.

Definition at line 284 of file PeoplemonInfo.cpp.

Member Data Documentation

◆ 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: