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

This state does the game intro, gets the player's name and gender, and triggers the main game state in the player's bedroom. More...

#include <NewGame.hpp>

+ Inheritance diagram for game::state::NewGame:

Public Member Functions

virtual ~NewGame ()=default
 Destroy the New Game state. More...
 
virtual const char * name () const override
 Returns "NewGame". 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)
 Creates the new game state. More...
 

Protected Attributes

core::system::Systemssystems
 

Detailed Description

This state does the game intro, gets the player's name and gender, and triggers the main game state in the player's bedroom.

Definition at line 18 of file NewGame.hpp.

Constructor & Destructor Documentation

◆ ~NewGame()

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

Destroy the New Game state.

Member Function Documentation

◆ activate()

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

Activates the state.

Parameters
engineThe game engine

Implements game::state::State.

Definition at line 28 of file NewGame.cpp.

◆ create()

NewGame::Ptr game::state::NewGame::create ( core::system::Systems systems)
static

Creates the new game state.

Parameters
systemsThe primary systems object
Returns
bl::engine::State::Ptr The new state

Definition at line 20 of file NewGame.cpp.

◆ deactivate()

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

Deactivates the state.

Parameters
engineThe game engine

Implements game::state::State.

Definition at line 85 of file NewGame.cpp.

◆ name()

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

Returns "NewGame".

Implements game::state::State.

Definition at line 26 of file NewGame.cpp.

◆ update()

void game::state::NewGame::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 98 of file NewGame.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: