1 #ifndef BLANK_UI_INTERFACE_HPP_
2 #define BLANK_UI_INTERFACE_HPP_
4 #include "../app/Config.hpp"
5 #include "../graphics/glm.hpp"
12 struct ClientController;
14 struct PlayerController;
19 Interface(Config &, const Keymap &, PlayerController &, ClientController &);
21 void SetInventorySlots(int num) { num_slots = num; }
26 void HandlePress(const SDL_KeyboardEvent &);
27 void HandleRelease(const SDL_KeyboardEvent &);
28 void Handle(const SDL_MouseMotionEvent &);
29 void HandlePress(const SDL_MouseButtonEvent &);
30 void HandleRelease(const SDL_MouseButtonEvent &);
31 void Handle(const SDL_MouseWheelEvent &);
34 void UpdateMovement();
35 void InvAbs(int slot);
36 void InvRel(int delta);
41 PlayerController &player_ctrl;
42 ClientController &client_ctrl;