summaryrefslogtreecommitdiff
path: root/src/common.hpp
diff options
context:
space:
mode:
authorPaweł Redman <pawel.redman@gmail.com>2017-11-10 14:37:35 +0100
committerPaweł Redman <pawel.redman@gmail.com>2017-11-10 14:37:35 +0100
commit3aac7d2c5220dc80a03f25d5e1b92daa39855b36 (patch)
tree1067f409eb3531e7897540239026d5836a542959 /src/common.hpp
parent9454caf1d99f3d324adab4bc49c6c0609a5faebd (diff)
WIPWIP
Diffstat (limited to 'src/common.hpp')
-rw-r--r--src/common.hpp15
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);
};
}