diff options
Diffstat (limited to 'src/common.hpp')
-rw-r--r-- | src/common.hpp | 15 |
1 files changed, 15 insertions, 0 deletions
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<context_option_t> 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); }; } |