visibility determination
[vrlugburz] / src / level.h
index d1e9931..a5a2ae6 100644 (file)
@@ -10,6 +10,7 @@ enum {
        TILE_OPEN,
        TILE_STR,
        TILE_CORNER,
+       TILE_OPENCORNER,
        TILE_TEE,
        TILE_CROSS,
        TILE_STR2OPEN,
@@ -32,6 +33,7 @@ struct tile {
 };
 
 struct cell {
+       int x, y;
        int type;
        int tiletype, tilerot;
        int wall[4];
@@ -58,6 +60,8 @@ struct level {
         * loaded, excluding meshes in tiles scenefiles
         */
        struct mesh *meshlist;
+
+       int visdist;
 };
 
 
@@ -72,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 get_cell_type(struct level *lvl, int x, int y);
+
 #endif /* LEVEL_H_ */