nexus/lf.h

20 lines
650 B
C

#include "defs.h"
lifeform_t *addlf(cell_t *cell, enum RACE rid);
race_t *addrace(enum RACE id, char *name, char glyph);
void die(lifeform_t *lf);
lifeform_t *findlf(map_t *m, int lfid);
race_t *findrace(enum RACE id);
int getattackspeed(lifeform_t *lf);
int getmovespeed(lifeform_t *lf);
char *getlfname(lifeform_t *lf, char *buf);
int haslof(lifeform_t *viewer, cell_t *dest);
int haslos(lifeform_t *viewer, cell_t *dest);
void initrace(void);
int isdead(lifeform_t *lf);
void killlf(lifeform_t *lf);
void killrace(race_t *race);
void losehp(lifeform_t *lf, int amt, lifeform_t *fromlf, char *damsrc);
void taketime(lifeform_t *lf, int howlong);