diff options
| author | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2021-07-03 00:49:03 +0200 |
|---|---|---|
| committer | Xavier Del Campo Romero <xavi.dcr@tutanota.com> | 2022-03-30 08:20:20 +0200 |
| commit | 6b9f686913efc3725b2690033cd4f398e07076ba (patch) | |
| tree | e9aa91a6b9f617d78123ebe7ad272fc42a60d306 /src/gui/inc | |
| parent | c9e6ae44a9aeb89b3f48f3443d6baa80103f7445 (diff) | |
| download | jancity-6b9f686913efc3725b2690033cd4f398e07076ba.tar.gz | |
Add project source code
Diffstat (limited to 'src/gui/inc')
| -rw-r--r-- | src/gui/inc/gui.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/src/gui/inc/gui.h b/src/gui/inc/gui.h new file mode 100644 index 0000000..254fd47 --- /dev/null +++ b/src/gui/inc/gui.h @@ -0,0 +1,36 @@ +#ifndef GUI_H +#define GUI_H + +#include <gfx.h> +#include <human_player.h> + +#ifdef __cplusplus +extern "C" +{ +#endif + +enum +{ + GUI_BAR_LEFT, + GUI_BAR_MID, + GUI_BAR_RIGHT, + GUI_SELECTION_UP_LEFT, + GUI_SELECTION_UP_RIGHT, + GUI_SELECTION_MID_VERT, + GUI_SELECTION_DOWN_LEFT, + GUI_SELECTION_DOWN_RIGHT, + GUI_SELECTION_MID, + + MAX_GUI_SPRITES +}; + +void gui_update(struct human_player *h); +int gui_render(const struct human_player *h); + +extern struct sprite gui_sprites[MAX_GUI_SPRITES]; + +#ifdef __cplusplus +} +#endif + +#endif /* GUI_H */ |
