1 #ifndef BLANK_STANDALONE_MASTERSTATE_HPP_
2 #define BLANK_STANDALONE_MASTERSTATE_HPP_
4 #include "../app/State.hpp"
5 #include "../ui/ClientController.hpp"
7 #include "PreloadState.hpp"
8 #include "UnloadState.hpp"
9 #include "../ai/Spawner.hpp"
10 #include "../app/ChatState.hpp"
11 #include "../audio/SoundBank.hpp"
12 #include "../graphics/SkyBox.hpp"
13 #include "../shared/WorldResources.hpp"
14 #include "../ui/DirectInput.hpp"
15 #include "../ui/HUD.hpp"
16 #include "../ui/InteractiveManipulator.hpp"
17 #include "../ui/Interface.hpp"
18 #include "../world/ChunkIndex.hpp"
19 #include "../world/ChunkLoader.hpp"
20 #include "../world/ChunkRenderer.hpp"
21 #include "../world/Generator.hpp"
22 #include "../world/Player.hpp"
23 #include "../world/World.hpp"
31 namespace standalone {
35 , public ClientController
36 , public ChatState::Responder {
42 const Generator::Config &,
43 const World::Config &,
48 void OnResume() override;
49 void OnPause() override;
51 void OnFocus() override;
52 void OnBlur() override;
54 void Handle(const SDL_Event &) override;
55 void Update(int dt) override;
56 void Render(Viewport &) override;
58 World &GetWorld() noexcept { return world; }
59 Interface &GetInterface() noexcept { return interface; }
61 void SetAudio(bool) override;
62 void SetVideo(bool) override;
63 void SetHUD(bool) override;
64 void SetDebug(bool) override;
67 void OnLineSubmit(const std::string &) override;
74 const WorldSave &save;
76 ChunkIndex &spawn_index;
80 InteractiveManipulator manip;
84 ChunkLoader chunk_loader;
85 ChunkRenderer chunk_renderer;