From 3aac7d2c5220dc80a03f25d5e1b92daa39855b36 Mon Sep 17 00:00:00 2001 From: Paweł Redman Date: Fri, 10 Nov 2017 14:37:35 +0100 Subject: WIP --- src/common.hpp | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'src') diff --git a/src/common.hpp b/src/common.hpp index 81d79e3..d095046 100644 --- a/src/common.hpp +++ b/src/common.hpp @@ -195,6 +195,13 @@ namespace game { } namespace interface { + class state_t; + + typedef struct { + const wchar_t *label; + int cmd; + } context_option_t; + class state_t { sf::RenderWindow *window; game::state_t *game; @@ -212,10 +219,18 @@ namespace interface { rectf_t rect; } select; + struct { + bool open; + std::list options; + } context; + public: state_t(sf::RenderWindow *window_, game::state_t *game); void tick(double dt); void render_to(render::state_t *render); + + void context_add(const context_option_t *option); + void context_open(void); }; } -- cgit