#include "defs.h" celltype_t *addcelltype(int id, char *name, char glyph, int solid, int transparent, enum MATERIAL mat); void checkdeath(void); void checkendgame(void); void cleanup(void); void donextturn(map_t *map); celltype_t *findcelltype(int id); char *getdirname(int dir); void getrarity(int depth, int *min, int *max, int range); int init(void); int isplayerturn(void); float pctof(float pct, float num); int rnd(int min, int max); int rolldie(int ndice, int sides); int rollhitdice(lifeform_t *lf); int rollmpdice(lifeform_t *lf); //void sortlf(map_t *map); void timeeffectsworld(map_t *map);