projects
/
dungeon1
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
b5e7959ab2d379589859492331a51e85accfe43a
[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
10
enum {
11
H = 24,
12
W = 80,
13
T = 1,
14
SEEDIST = 4,
15
};
16
17
struct map {
18
char *name;
19
char map[24][80];
20
};
21
22
struct map *readmap(char *);
23
struct map *getblackmap(void);
24
void freemap(struct map *);
25
void showmap(struct map *);
26
void findchar(struct map *, char, int *, int *);
27
void see(struct map *, int, int);
28