projects
/
vrlugburz
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
ui commit
[vrlugburz]
/
tools
/
dunger
/
src
/
level.h
1
#ifndef LEVEL_H_
2
#define LEVEL_H_
3
4
enum {
5
CELL_SOLID,
6
CELL_WALK,
7
CELL_BLOCKED
8
};
9
10
struct cell {
11
int type;
12
int wall[4];
13
int floor, ceil;
14
};
15
16
struct level {
17
int width, height;
18
struct cell *cells;
19
};
20
21
22
struct level *create_level(int xsz, int ysz);
23
void free_level(struct level *lvl);
24
25
#endif /* LEVEL_H_ */