diff options
Diffstat (limited to 'inc/mine-sweeper/menu/iface.h')
-rwxr-xr-x | inc/mine-sweeper/menu/iface.h | 67 |
1 files changed, 67 insertions, 0 deletions
diff --git a/inc/mine-sweeper/menu/iface.h b/inc/mine-sweeper/menu/iface.h new file mode 100755 index 0000000..ca9200f --- /dev/null +++ b/inc/mine-sweeper/menu/iface.h @@ -0,0 +1,67 @@ +/****************************************************************************** + * Copyright (C) 2015 Alejandro Colomar Andrés * + ******************************************************************************/ + + +/****************************************************************************** + ******* include guard ******************************************************** + ******************************************************************************/ +#ifndef MSW_MENU_IFACE_H +#define MSW_MENU_IFACE_H + + +/****************************************************************************** + ******* headers ************************************************************** + ******************************************************************************/ +#include <stdbool.h> +#include <stddef.h> + + +/****************************************************************************** + ******* enums **************************************************************** + ******************************************************************************/ + enum Menu_Iface_Mode { + MENU_IFACE_FOO = 0, + MENU_IFACE_CLUI, + MENU_IFACE_TUI, + MENU_IFACE_GUI + }; + + +/****************************************************************************** + ******* structs ************************************************************** + ******************************************************************************/ + struct Menu_Iface_Variables { + int level; + ptrdiff_t rows; + ptrdiff_t cols; + double p; + }; + + +/****************************************************************************** + ******* variables ************************************************************ + ******************************************************************************/ +extern bool flag_exit; +extern int menu_iface_mode; +extern struct Menu_Iface_Variables menu_iface_variables; + + +/****************************************************************************** + ******* functions ************************************************************ + ******************************************************************************/ +void menu_iface_init (void); +void menu_iface_board (int *level, ptrdiff_t *rows, ptrdiff_t *cols, + int *mines); +void menu_iface (void); + + +/****************************************************************************** + ******* include guard ******************************************************** + ******************************************************************************/ +# endif /* menu_iface.h */ + + +/****************************************************************************** + ******* end of file ********************************************************** + ******************************************************************************/ |