X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;ds=sidebyside;f=main.h;h=e513f9718d47a20803a7219fdf17edc39eb6e171;hb=HEAD;hp=011b80c99948f3b970a4deffe58c3f166c69e305;hpb=36829587f6a6c375aa2912d955f84871a098c254;p=dungeon1 diff --git a/main.h b/main.h index 011b80c..e513f97 100644 --- a/main.h +++ b/main.h @@ -5,18 +5,32 @@ #include #define MAPDIR "maps" +#define BLANKCHAR ' ' +#define WALLCHARS "#-|.'+" enum { H = 24, W = 80, T = 1, + SEEDIST = 4, + MAPH = 24, + MAPW = 80, + BORDER = 1, }; +WINDOW *w_map, *w_mapborder; +WINDOW *w_hud, *w_pos, *w_info, *w_gold; +WINDOW *w_title; + struct map { char *name; char map[24][80]; }; struct map *readmap(char *); -void showmap(struct map*); +struct map *getblackmap(void); +void freemap(struct map *); +void showmap(struct map *); +void findchar(struct map *, char, int *, int *); +void see(struct map *, int, int);