projects
/
vrlugburz
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
visibility determination
[vrlugburz]
/
src
/
level.h
diff --git
a/src/level.h
b/src/level.h
index
6e6eed7
..
a5a2ae6
100644
(file)
--- a/
src/level.h
+++ b/
src/level.h
@@
-10,9
+10,11
@@
enum {
TILE_OPEN,
TILE_STR,
TILE_CORNER,
TILE_OPEN,
TILE_STR,
TILE_CORNER,
+ TILE_OPENCORNER,
TILE_TEE,
TILE_CROSS,
TILE_TEE,
TILE_CROSS,
- TILE_STR2OPEN
+ TILE_STR2OPEN,
+ TILE_STROPEN
};
enum {
};
enum {
@@
-24,14
+26,20
@@
enum {
struct tile {
char *name;
int type;
struct tile {
char *name;
int type;
+
+ struct meshgroup mgrp;
+
struct tile *next;
};
struct cell {
struct tile *next;
};
struct cell {
+ int x, y;
int type;
int type;
+ int tiletype, tilerot;
int wall[4];
int floor, ceil;
int wall[4];
int floor, ceil;
+ struct tile *tile;
struct meshgroup *mgrp;
int num_mgrp;
struct meshgroup *mgrp;
int num_mgrp;
@@
-52,6
+60,8
@@
struct level {
* loaded, excluding meshes in tiles scenefiles
*/
struct mesh *meshlist;
* loaded, excluding meshes in tiles scenefiles
*/
struct mesh *meshlist;
+
+ int visdist;
};
};
@@
-66,4
+76,6
@@
struct tile *find_level_tile(struct level *lvl, int type);
int gen_cell_geom(struct level *lvl, struct cell *cell);
int gen_level_geom(struct level *lvl);
int gen_cell_geom(struct level *lvl, struct cell *cell);
int gen_level_geom(struct level *lvl);
+int get_cell_type(struct level *lvl, int x, int y);
+
#endif /* LEVEL_H_ */
#endif /* LEVEL_H_ */