2010-12-02 12:17:54 +11:00
|
|
|
#include "defs.h"
|
|
|
|
|
2011-02-01 06:16:13 +11:00
|
|
|
celltype_t *addcelltype(int id, char *name, char glyph, int solid, int transparent, enum MATERIAL mat);
|
|
|
|
void checkdeath(void);
|
2010-12-02 12:17:54 +11:00
|
|
|
void checkendgame(void);
|
|
|
|
void cleanup(void);
|
|
|
|
void donextturn(map_t *map);
|
|
|
|
celltype_t *findcelltype(int id);
|
|
|
|
char *getdirname(int dir);
|
2011-02-01 06:16:13 +11:00
|
|
|
void getrarity(int depth, int *min, int *max, int range);
|
2010-12-02 12:17:54 +11:00
|
|
|
int init(void);
|
|
|
|
int isplayerturn(void);
|
2011-02-01 06:16:13 +11:00
|
|
|
float pctof(float pct, float num);
|
2010-12-02 12:17:54 +11:00
|
|
|
int rnd(int min, int max);
|
2010-12-07 18:34:26 +11:00
|
|
|
int rolldie(int ndice, int sides);
|
2011-02-01 06:16:13 +11:00
|
|
|
int rollhitdice(lifeform_t *lf);
|
|
|
|
int rollmpdice(lifeform_t *lf);
|
|
|
|
//void sortlf(map_t *map);
|
|
|
|
void timeeffectsworld(map_t *map);
|