summaryrefslogtreecommitdiffstats
path: root/modules/menu/inc/menu_iface.h
blob: a7ac23bc845b72ac58f1a1fb5ce8a86074c0b425 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
/******************************************************************************
 *	Copyright (C) 2015	Alejandro Colomar Andrés		      *
 ******************************************************************************/


/******************************************************************************
 ******* include guard ********************************************************
 ******************************************************************************/
# ifndef		MSW_MENU_IFACE_H
	# define	MSW_MENU_IFACE_H


/******************************************************************************
 ******* headers **************************************************************
 ******************************************************************************/
	#include <stdbool.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;
		int	rows;
		int	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, int *rows, int *cols, int *mines);
void	menu_iface		(void);


/******************************************************************************
 ******* include guard ********************************************************
 ******************************************************************************/
# endif			/* menu_iface.h */


/******************************************************************************
 ******* end of file **********************************************************
 ******************************************************************************/