diff options
author | jacopograndi <jak.sk8@hotmail.it> | 2021-08-19 18:46:51 +0200 |
---|---|---|
committer | jacopograndi <jak.sk8@hotmail.it> | 2021-08-19 18:46:51 +0200 |
commit | a8bcacc95045102e67f2feabbdddf79535837554 (patch) | |
tree | 5781dd4cb2fe66b67deab84ff4641b7e21b9c174 /game/view.h |
forgot to make repo until now
Diffstat (limited to 'game/view.h')
-rw-r--r-- | game/view.h | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/game/view.h b/game/view.h new file mode 100644 index 0000000..6aa3486 --- /dev/null +++ b/game/view.h @@ -0,0 +1,32 @@ +#ifndef VIEW_H +#define VIEW_H + +#include <vector> +#include <functional> + +#include "gst.h" +#include "menu.h" + +class View { + public: + View (vec2 res) : res(res) {} + + vec2 res; + + int selected_ground {-1}; + int selected_entity {-1}; + int cursor_ground {-1}; + int cursor_entity {-1}; + int back {-1}; + int opt {-1}; + std::vector<int> moves; + std::vector<int> attacks; + std::vector<int> builds; + + Menu_unit menu_unit; + Menu_day menu_day; + + void process (Gst &gst, vec2 cam, vec2 mouse, int *mheld); +}; + +#endif
\ No newline at end of file |