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 };
49 /* populated by calc_vis */
50 struct cell *vis[128];
56 struct level *init_level(const char *descstr);
57 void free_level(struct level *lvl);
59 struct cell *level_cell(struct level *lvl, int cx, int cy);
61 void upd_vis(struct level *lvl, struct player *p);
63 void cell_to_pos(struct level *lvl, int cx, int cy, int32_t *px, int32_t *py);
64 void pos_to_cell(struct level *lvl, int32_t px, int32_t py, int *cx, int *cy);