aboutsummaryrefslogtreecommitdiff
path: root/cavegen.h
blob: 05d2fd239336f6ee8c76345edc5eac66a6e78de1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
#ifndef CAVEGEN_H_
#define CAVEGEN_H_

#include <stdbool.h>

#define HEIGHT 100
#define WIDTH  180

enum tile_type {
    WALL,
    GROUND,
    UP_STAIR,
    DOWN_STAIR,
};

struct point {
    int x;
    int y;
};

struct map {
    enum tile_type *map;
    struct point    entry_point;

    int width;
    int height;
};

void create_cave(struct map *map);

#endif // CAVEGEN_H_