X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Finterface.hpp;h=7bfd7155cc3823e335fd7d0cf69964a2121fbfbc;hb=f90ec88e6728ce865bcf892c810a36abd90d9001;hp=68173050bbb036bdd95b0f6a0f76935678b95555;hpb=d242294d15e7465f915d4c79ce563a557afc74d8;p=blank.git diff --git a/src/interface.hpp b/src/interface.hpp index 6817305..7bfd715 100644 --- a/src/interface.hpp +++ b/src/interface.hpp @@ -18,7 +18,17 @@ class World; class Interface { public: - explicit Interface(World &); + struct Config { + float move_velocity = 0.005f; + float pitch_sensitivity = -0.0025f; + float yaw_sensitivity = -0.001f; + + bool keyboard_disabled = false; + bool mouse_disabled = false; + bool visual_disabled = false; + }; + + Interface(const Config &, World &); void Handle(const SDL_KeyboardEvent &); void Handle(const SDL_MouseMotionEvent &); @@ -34,6 +44,7 @@ public: void RemoveBlock(); void PrintBlockInfo(); + void PrintLightInfo(); void PrintSelectionInfo(); void Print(const Block &); @@ -56,9 +67,7 @@ private: OutlineModel outline; glm::mat4 outline_transform; - float move_velocity; - float pitch_sensitivity; - float yaw_sensitivity; + Config config; Block remove; Block selection;