6 /* cell size in 16.16 fixed point */
7 #define CELL_SIZE 0x20000
9 enum { MOBS_DEAD, MOBS_IDLE, MOBS_ENGAGE, MOBS_RUN };
26 struct item *cellnext;
29 enum { CELL_SOLID, CELL_WALK };
48 /* populated by calc_vis */
49 struct cell *vis[128];
55 struct level *init_level(const char *descstr);
56 void free_level(struct level *lvl);
58 void upd_vis(struct level *lvl, struct player *p);
60 void cell_to_pos(struct level *lvl, int cx, int cy, int32_t *px, int32_t *py);
61 void pos_to_cell(struct level *lvl, int32_t px, int32_t py, int *cx, int *cy);