TILE_OPEN,
TILE_STR,
TILE_CORNER,
+ TILE_OPENCORNER,
TILE_TEE,
TILE_CROSS,
- TILE_STR2OPEN
+ TILE_STR2OPEN,
+ TILE_STROPEN
};
enum {
struct tile {
char *name;
int type;
+
+ struct meshgroup mgrp;
+
struct tile *next;
};
struct cell {
+ int x, y;
int type;
+ int tiletype, tilerot;
int wall[4];
int floor, ceil;
+ struct tile *tile;
struct meshgroup *mgrp;
int num_mgrp;
* loaded, excluding meshes in tiles scenefiles
*/
struct mesh *meshlist;
+
+ int visdist;
};
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_ */