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>
|
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...
|
|
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.
◆ ~NewGame()
virtual game::state::NewGame::~NewGame |
( |
| ) |
|
|
virtualdefault |
Destroy the New Game state.
◆ activate()
void game::state::NewGame::activate |
( |
bl::engine::Engine & |
engine | ) |
|
|
overridevirtual |
◆ create()
Creates the new game state.
- Parameters
-
systems | The 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 |
◆ name()
const char * game::state::NewGame::name |
( |
| ) |
const |
|
overridevirtual |
◆ update()
void game::state::NewGame::update |
( |
bl::engine::Engine & |
engine, |
|
|
float |
dt, |
|
|
float |
|
|
) |
| |
|
overridevirtual |
Updates the state and menus and whatnot.
- Parameters
-
engine | The game engine |
dt | Time elapsed in seconds |
Implements game::state::State.
Definition at line 98 of file NewGame.cpp.
◆ systems
The documentation for this class was generated from the following files: