diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2019-04-21 16:04:53 +0200 |
---|---|---|
committer | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2019-04-21 16:04:53 +0200 |
commit | 9d9a415b9a6e4a9ad75256e10f68e4ce55dd5f95 (patch) | |
tree | f6f962b5ad8188f17cdb10f1a41f48cf7a643e4b /src/Game.hpp | |
parent | Renamed GlobalState to Game (diff) | |
download | AltCraft-9d9a415b9a6e4a9ad75256e10f68e4ce55dd5f95.tar AltCraft-9d9a415b9a6e4a9ad75256e10f68e4ce55dd5f95.tar.gz AltCraft-9d9a415b9a6e4a9ad75256e10f68e4ce55dd5f95.tar.bz2 AltCraft-9d9a415b9a6e4a9ad75256e10f68e4ce55dd5f95.tar.lz AltCraft-9d9a415b9a6e4a9ad75256e10f68e4ce55dd5f95.tar.xz AltCraft-9d9a415b9a6e4a9ad75256e10f68e4ce55dd5f95.tar.zst AltCraft-9d9a415b9a6e4a9ad75256e10f68e4ce55dd5f95.zip |
Diffstat (limited to 'src/Game.hpp')
-rw-r--r-- | src/Game.hpp | 36 |
1 files changed, 19 insertions, 17 deletions
diff --git a/src/Game.hpp b/src/Game.hpp index bc7224f..633585f 100644 --- a/src/Game.hpp +++ b/src/Game.hpp @@ -1,25 +1,27 @@ #pragma once -#include <memory> - -class NetworkClient; class GameState; class Render; +class NetworkClient; enum class State { - InitialLoading, - MainMenu, - Loading, - Playing, - Paused, - Inventory, - Chat, + InitialLoading, + MainMenu, + Loading, + Playing, + Paused, + Inventory, + Chat, }; -struct GlobalState { - static std::shared_ptr<GameState> GetGameState(); - static Render *GetRender(); - static void Exec(); - static State GetState(); - static void SetState(const State &newState); -};
\ No newline at end of file +void RunGame(); + +State GetState(); + +void SetState(State newState); + +GameState* GetGameState(); + +Render* GetRender(); + +NetworkClient* GetNetworkClient();
\ No newline at end of file |