projects
/
vrlugburz
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
tilesets
[vrlugburz]
/
src
/
level.h
diff --git
a/src/level.h
b/src/level.h
index
76006f3
..
6a57dc2
100644
(file)
--- a/
src/level.h
+++ b/
src/level.h
@@
-1,21
+1,42
@@
#ifndef LEVEL_H_
#define LEVEL_H_
#ifndef LEVEL_H_
#define LEVEL_H_
+#include "scenefile.h"
+
+enum {
+ TILE_STRAIGHT,
+ TILE_CORNER,
+ TILE_DOOR
+};
+
enum {
CELL_SOLID,
CELL_WALK,
CELL_BLOCKED
};
enum {
CELL_SOLID,
CELL_WALK,
CELL_BLOCKED
};
+struct tile {
+ char *name;
+ int type;
+ struct scenefile scn;
+ struct tile *next;
+};
+
struct cell {
int type;
int wall[4];
int floor, ceil;
struct cell {
int type;
int wall[4];
int floor, ceil;
+
+ struct meshgroup mgrp;
};
struct level {
};
struct level {
+ char *fname, *dirname;
+
int width, height;
struct cell *cells;
int width, height;
struct cell *cells;
+
+ struct tile *tiles;
};
};
@@
-25,4
+46,6
@@
void destroy_level(struct level *lvl);
int load_level(struct level *lvl, const char *fname);
int save_level(struct level *lvl, const char *fname);
int load_level(struct level *lvl, const char *fname);
int save_level(struct level *lvl, const char *fname);
+int gen_level_geom(struct level *lvl);
+
#endif /* LEVEL_H_ */
#endif /* LEVEL_H_ */