nexus/nexus.h

24 lines
753 B
C
Raw Normal View History

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);
2011-03-04 12:22:36 +11:00
command_t *addcommand(enum COMMAND id, char c, char *desc);
2011-02-01 06:16:13 +11:00
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);
2011-03-04 12:22:36 +11:00
void initcommands(void);
2010-12-02 12:17:54 +11:00
int isplayerturn(void);
2011-03-04 12:22:36 +11:00
int limit(int *what, int min, int max);
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);
2011-03-04 12:22:36 +11:00
void sortcommands(void);
2011-02-01 06:16:13 +11:00
void timeeffectsworld(map_t *map);