Bomberman
GameState.hpp
Go to the documentation of this file.
1 //
2 // Created by Zoe Roux on 5/24/21.
3 //
4 
5 
6 #pragma once
7 
8 #include <unordered_map>
9 #include <Scene/Scene.hpp>
10 
11 
12 namespace BBM
13 {
15  class GameState
16  {
17  public:
19  enum SceneID
20  {
32  };
33 
34 
37 
40 
43 
45  std::unordered_map<SceneID, std::shared_ptr<WAL::Scene>> loadedScenes = {};
46  };
47 }
BBM::GameState::ScoreScene
@ ScoreScene
Definition: GameState.hpp:31
BBM::GameState::GameScene
@ GameScene
Definition: GameState.hpp:23
BBM::GameState::loadedScenes
std::unordered_map< SceneID, std::shared_ptr< WAL::Scene > > loadedScenes
The list of loaded scenes.
Definition: GameState.hpp:45
BBM::GameState::nextScene
SceneID nextScene
The next scene to load (if smae as currentScene, nothing to do)
Definition: GameState.hpp:42
BBM::GameState::ResumeLobbyScene
@ ResumeLobbyScene
Definition: GameState.hpp:27
BBM
Definition: AnimationsComponent.cpp:9
BBM::GameState::HowToPlayScene
@ HowToPlayScene
Definition: GameState.hpp:30
BBM::GameState::TitleScreenScene
@ TitleScreenScene
Definition: GameState.hpp:28
BBM::GameState::PauseMenuScene
@ PauseMenuScene
Definition: GameState.hpp:25
BBM::GameState::previousScene
SceneID previousScene
The scene before the actual one. Used for back buttons.
Definition: GameState.hpp:36
BBM::GameState::SceneID
SceneID
The list of scenes available.
Definition: GameState.hpp:19
BBM::GameState::MainMenuScene
@ MainMenuScene
Definition: GameState.hpp:22
BBM::GameState::SettingsScene
@ SettingsScene
Definition: GameState.hpp:24
BBM::GameState::SplashScreen
@ SplashScreen
Definition: GameState.hpp:21
BBM::GameState::currentScene
SceneID currentScene
The currently loaded scene.
Definition: GameState.hpp:39
Scene.hpp
BBM::GameState::LobbyScene
@ LobbyScene
Definition: GameState.hpp:26
BBM::GameState::CreditScene
@ CreditScene
Definition: GameState.hpp:29
BBM::GameState
A class representing the current game state. This allow one to retain information between update call...
Definition: GameState.hpp:15