Minor changes (found out what overlay() means ...)
[dungeon1] / main.h
1 #include <stdio.h>
2 #include <unistd.h>
3 #include <string.h>
4 #include <stdlib.h>
5 #include <ncurses.h>
6
7 #define MAPDIR "maps"
8 #define BLANKCHAR ' '
9 #define WALLCHARS "#-|.'+"
10
11 enum {
12         H = 24,
13         W = 80,
14         T = 1,
15         SEEDIST = 4,
16         MAPH = 24,
17         MAPW = 80,
18         BORDER = 1,
19 };
20
21 WINDOW *w_map, *w_mapborder;
22 WINDOW *w_hud, *w_pos, *w_info, *w_gold;
23 WINDOW *w_title;
24
25 struct map {
26         char *name;
27         char map[24][80];
28 };
29
30 struct map *readmap(char *);
31 struct map *getblackmap(void);
32 void freemap(struct map *);
33 void showmap(struct map *);
34 void findchar(struct map *, char, int *, int *);
35 void see(struct map *, int, int);
36