projects
/
dungeon1
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Add fog of war
[dungeon1]
/
main.h
diff --git
a/main.h
b/main.h
index
011b80c
..
b5e7959
100644
(file)
--- a/
main.h
+++ b/
main.h
@@
-5,11
+5,13
@@
#include <ncurses.h>
#define MAPDIR "maps"
#include <ncurses.h>
#define MAPDIR "maps"
+#define BLANKCHAR ':'
enum {
H = 24,
W = 80,
T = 1,
enum {
H = 24,
W = 80,
T = 1,
+ SEEDIST = 4,
};
struct map {
};
struct map {
@@
-18,5
+20,9
@@
struct map {
};
struct map *readmap(char *);
};
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);