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 "../graphics/SkyBox.hpp"
11 #include "../model/Skeletons.hpp"
12 #include "../ui/DirectInput.hpp"
13 #include "../ui/HUD.hpp"
14 #include "../ui/InteractiveManipulator.hpp"
15 #include "../ui/Interface.hpp"
16 #include "../world/BlockTypeRegistry.hpp"
17 #include "../world/ChunkIndex.hpp"
18 #include "../world/ChunkLoader.hpp"
19 #include "../world/ChunkRenderer.hpp"
20 #include "../world/Generator.hpp"
21 #include "../world/Player.hpp"
22 #include "../world/World.hpp"
30 namespace standalone {
34 , public ClientController {
40 const Generator::Config &,
41 const World::Config &,
46 void OnResume() override;
47 void OnPause() override;
49 void Handle(const SDL_Event &) override;
50 void Update(int dt) override;
51 void Render(Viewport &) override;
53 World &GetWorld() noexcept { return world; }
54 Interface &GetInterface() noexcept { return interface; }
56 void SetAudio(bool) override;
57 void SetVideo(bool) override;
58 void SetHUD(bool) override;
59 void SetDebug(bool) override;
65 BlockTypeRegistry block_types;
66 const WorldSave &save;
68 ChunkIndex &spawn_index;
72 InteractiveManipulator manip;
76 ChunkLoader chunk_loader;
77 ChunkRenderer chunk_renderer;