Bomberman
Public Types | Public Attributes | List of all members
BBM::GameState Class Reference

A class representing the current game state. This allow one to retain information between update calls. More...

#include <GameState.hpp>

Collaboration diagram for BBM::GameState:

Public Types

enum  SceneID {
  SplashScreen, MainMenuScene, GameScene, SettingsScene,
  PauseMenuScene, LobbyScene, ResumeLobbyScene, TitleScreenScene,
  CreditScene, HowToPlayScene, ScoreScene
}
 The list of scenes available. More...
 

Public Attributes

SceneID previousScene = SplashScreen
 The scene before the actual one. Used for back buttons. More...
 
SceneID currentScene = SplashScreen
 The currently loaded scene. More...
 
SceneID nextScene = SplashScreen
 The next scene to load (if smae as currentScene, nothing to do) More...
 
std::unordered_map< SceneID, std::shared_ptr< WAL::Scene > > loadedScenes = {}
 The list of loaded scenes. More...
 

Detailed Description

A class representing the current game state. This allow one to retain information between update calls.

Member Enumeration Documentation

◆ SceneID

The list of scenes available.

Enumerator
SplashScreen 
MainMenuScene 
GameScene 
SettingsScene 
PauseMenuScene 
LobbyScene 
ResumeLobbyScene 
TitleScreenScene 
CreditScene 
HowToPlayScene 
ScoreScene 

Member Data Documentation

◆ currentScene

SceneID BBM::GameState::currentScene = SplashScreen

The currently loaded scene.

◆ loadedScenes

std::unordered_map<SceneID, std::shared_ptr<WAL::Scene> > BBM::GameState::loadedScenes = {}

The list of loaded scenes.

◆ nextScene

SceneID BBM::GameState::nextScene = SplashScreen

The next scene to load (if smae as currentScene, nothing to do)

◆ previousScene

SceneID BBM::GameState::previousScene = SplashScreen

The scene before the actual one. Used for back buttons.


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