#include "defs.h" celltype_t *addcelltype(int id, char *name, char glyph, int solid, int transparent, enum MATERIAL mat); command_t *addcommand(enum COMMAND id, char c, char *desc); 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); void initcommands(void); int isplayerturn(void); int limit(int *what, int min, int max); 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 sortcommands(void); void timeeffectsworld(map_t *map);