X-Git-Url: https://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fstandalone%2FMasterState.hpp;h=9cb095ac1eb8d7d048bc12481e25227ca3feb287;hb=10a310869c61cc52046e165f36ac9639fe9d0c69;hp=6e630200fa9eab8e60b653e7fb5bf76cae1b9d53;hpb=9c5308ba4108bd842af6d9d2e893ea575a7e6ca8;p=blank.git diff --git a/src/standalone/MasterState.hpp b/src/standalone/MasterState.hpp index 6e63020..9cb095a 100644 --- a/src/standalone/MasterState.hpp +++ b/src/standalone/MasterState.hpp @@ -7,7 +7,10 @@ #include "PreloadState.hpp" #include "UnloadState.hpp" #include "../ai/Spawner.hpp" +#include "../audio/SoundBank.hpp" #include "../graphics/SkyBox.hpp" +#include "../shared/ChatState.hpp" +#include "../shared/CLI.hpp" #include "../shared/WorldResources.hpp" #include "../ui/DirectInput.hpp" #include "../ui/HUD.hpp" @@ -30,7 +33,8 @@ namespace standalone { class MasterState : public State -, public ClientController { +, public ClientController +, public ChatState::Responder { public: MasterState( @@ -45,6 +49,9 @@ public: void OnResume() override; void OnPause() override; + void OnFocus() override; + void OnBlur() override; + void Handle(const SDL_Event &) override; void Update(int dt) override; void Render(Viewport &) override; @@ -58,10 +65,13 @@ public: void SetDebug(bool) override; void Exit() override; + void OnLineSubmit(const std::string &) override; + private: Config &config; Environment &env; WorldResources res; + SoundBank sounds; const WorldSave &save; World world; ChunkIndex &spawn_index; @@ -78,8 +88,11 @@ private: SkyBox sky; + CLI cli; + PreloadState preload; UnloadState unload; + ChatState chat; };