aboutsummaryrefslogtreecommitdiff
path: root/dat.h
blob: b0350e14fba8f82553b6206e4f96a8ee6ae8ba9c (plain)
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
enum {
	Twater,
	Tship,
	Thit,
	Tmiss,
	NTILES,

	Boardmargin = 50,
	TW = 16,
	TH = TW,
	MAPW = 17,
	MAPH = MAPW,
	SCRW = Boardmargin+MAPW*TW+Boardmargin,
	SCRH = Boardmargin+MAPH*TH+TH+MAPH*TH+Boardmargin,
};

typedef struct Input Input;
typedef struct Board Board;

struct Input
{
	Mousectl *mc;
	Keyboardctl *kc;
};

struct Board
{
	RFrame;
	char map[17][17];
	Rectangle bbox;
};