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/ChunkLoader.hpp"
18 #include "../world/ChunkRenderer.hpp"
19 #include "../world/Generator.hpp"
20 #include "../world/Player.hpp"
21 #include "../world/World.hpp"
29 namespace standalone {
33 , public ClientController {
39 const Generator::Config &,
40 const World::Config &,
44 void OnEnter() override;
46 void Handle(const SDL_Event &) override;
47 void Update(int dt) override;
48 void Render(Viewport &) override;
50 World &GetWorld() noexcept { return world; }
51 Interface &GetInterface() noexcept { return interface; }
53 void SetAudio(bool) override;
54 void SetVideo(bool) override;
55 void SetHUD(bool) override;
56 void SetDebug(bool) override;
62 BlockTypeRegistry block_types;
66 InteractiveManipulator manip;
70 ChunkLoader chunk_loader;
71 ChunkRenderer chunk_renderer;