Add map beautifying (still has some minor bugs)
[dungeon1] / main.h
diff --git a/main.h b/main.h
index 603e59b..7cce2ec 100644 (file)
--- a/main.h
+++ b/main.h
@@ -1,4 +1,29 @@
 #include <stdio.h>
-#include <ncurses.h>
 #include <unistd.h>
+#include <string.h>
+#include <stdlib.h>
+#include <ncurses.h>
+
+#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);