Adding a state and scene utils

This commit is contained in:
Zoe Roux
2021-05-24 14:59:28 +02:00
parent 6f7e7ffaf9
commit 54fe800549
8 changed files with 136 additions and 32 deletions
+31
View File
@@ -0,0 +1,31 @@
//
// Created by Zoe Roux on 5/24/21.
//
#pragma once
#include <unordered_map>
#include <Scene/Scene.hpp>
namespace Bomberman
{
//! @brief A class representing the current game state. This allow one to retain information between update calls.
class GameState
{
//! @brief The list of scenes available.
enum SceneID
{
MainMenu,
GameScene
};
//! @brief The currently loaded scene
SceneID currentScene = MainMenu;
//! @brief The list of loaded scenes.
std::unordered_map<SceneID, WAL::Scene> _loadedScenes = {};
};
}