X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;ds=sidebyside;f=main.h;h=7cce2ecd29752b842fc3e3e2e52c38384a4e1a33;hb=2e8319ed96a300021169b81aacf3c1f7fcb9e1a1;hp=603e59b89fb7102b1b179a164f417d0599dd0e2a;hpb=90f60101878cc8418bbe90b323c046660d25029b;p=dungeon1 diff --git a/main.h b/main.h index 603e59b..7cce2ec 100644 --- a/main.h +++ b/main.h @@ -1,4 +1,29 @@ #include -#include #include +#include +#include +#include + +#define MAPDIR "maps" +#define BLANKCHAR ' ' +#define WALLCHARS "#-|.'+" + +enum { + H = 24, + W = 80, + T = 1, + SEEDIST = 4, +}; + +struct map { + char *name; + char map[24][80]; +}; + +struct map *readmap(char *); +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);