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