X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fstandalone%2FMasterState.hpp;h=f2c702fb2033df38fbfe39df28e1ac930760e5f8;hb=ccd6e7001572808400b9cb9bc91f9bedcf28a1ad;hp=ca5cab29879ebdaf6c9a7cd73ec895736213666a;hpb=e1209ec25c4cc91e13889876106f56bd51aa96e2;p=blank.git diff --git a/src/standalone/MasterState.hpp b/src/standalone/MasterState.hpp index ca5cab2..f2c702f 100644 --- a/src/standalone/MasterState.hpp +++ b/src/standalone/MasterState.hpp @@ -2,34 +2,41 @@ #define BLANK_STANDALONE_MASTERSTATE_HPP_ #include "../app/State.hpp" +#include "../ui/ClientController.hpp" #include "PreloadState.hpp" #include "UnloadState.hpp" #include "../ai/Spawner.hpp" #include "../graphics/SkyBox.hpp" #include "../model/Skeletons.hpp" +#include "../ui/DirectInput.hpp" +#include "../ui/HUD.hpp" +#include "../ui/InteractiveManipulator.hpp" #include "../ui/Interface.hpp" #include "../world/BlockTypeRegistry.hpp" #include "../world/ChunkLoader.hpp" #include "../world/ChunkRenderer.hpp" #include "../world/Generator.hpp" +#include "../world/Player.hpp" #include "../world/World.hpp" namespace blank { +class Config; class Environment; namespace standalone { class MasterState -: public State { +: public State +, public ClientController { public: MasterState( Environment &, + Config &, const Generator::Config &, - const Interface::Config &, const World::Config &, const WorldSave & ); @@ -43,10 +50,21 @@ public: World &GetWorld() noexcept { return world; } Interface &GetInterface() noexcept { return interface; } + void SetAudio(bool) override; + void SetVideo(bool) override; + void SetHUD(bool) override; + void SetDebug(bool) override; + void Exit() override; + private: + Config &config; Environment &env; BlockTypeRegistry block_types; World world; + Player &player; + HUD hud; + InteractiveManipulator manip; + DirectInput input; Interface interface; Generator generator; ChunkLoader chunk_loader;