Handles picking a state to run and loading/saveing them.
More...
#include <statemanager.h>
Handles picking a state to run and loading/saveing them.
Handles loading a state, running it and then based on on the value returned from the state loading the next state desired
| void StateManager::ChangeScene |
( |
std::string |
scene | ) |
|
|
static |
Change the active scene to the scene passed, exiting the current active scene
- Parameters
-
| scene | The scene to change to |
| std::shared_ptr< State > StateManager::GetActiveState |
( |
| ) |
|
|
static |
Get the active State
- Returns
- A shared_ptr to the active state
| void StateManager::InitIntro |
( |
| ) |
|
|
static |
Start the first state, mIntro
| void StateManager::LoadState |
( |
std::string |
name | ) |
|
|
static |
Load a state from file by its name
- Parameters
-
| name | The state name to load for the state, state and file names are same |
| void StateManager::RunState |
( |
std::string |
name | ) |
|
|
static |
Set a state active based on its name
- Parameters
-
| name | The name of the state to set active |
| void StateManager::SaveState |
( |
std::string |
name | ) |
|
|
static |
Save a state to a data file corresponding to its name
- Parameters
-
| name | The state name to save, state and file names are the same |
The documentation for this class was generated from the following files:
- C:/Users/Will/Documents/Programs/LPCGame/src/core/statemanager.h
- C:/Users/Will/Documents/Programs/LPCGame/src/core/statemanager.cpp