X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fui%2FInterface.hpp;h=bcc6c662ff1e0750937ff4c5e0750cda9fe0b77c;hb=dcd54cacda98c2c0f7cf0c7a9131fb858d8ee10a;hp=aa040a1ede174e63a20708bdb1208fe0118e4896;hpb=b066e776622f96e906600a0c4a08de392bd03676;p=blank.git diff --git a/src/ui/Interface.hpp b/src/ui/Interface.hpp index aa040a1..bcc6c66 100644 --- a/src/ui/Interface.hpp +++ b/src/ui/Interface.hpp @@ -2,9 +2,9 @@ #define BLANK_UI_INTERFACE_HPP_ #include "../app/Config.hpp" +#include "../graphics/glm.hpp" #include -#include namespace blank { @@ -20,6 +20,9 @@ public: void SetInventorySlots(int num) { num_slots = num; } + void Lock(); + void Unlock(); + void HandlePress(const SDL_KeyboardEvent &); void HandleRelease(const SDL_KeyboardEvent &); void Handle(const SDL_MouseMotionEvent &); @@ -39,9 +42,10 @@ private: ClientController &client_ctrl; glm::ivec3 fwd, rev; - int slot; int num_slots; + bool locked; + }; }