nexus/lf.h

35 lines
1.3 KiB
C

#include "defs.h"
lifeform_t *addlf(cell_t *cell, enum RACE rid, int level);
race_t *addrace(enum RACE id, char *name, char glyph);
int canpickup(lifeform_t *lf, object_t *o);
int canwear(lifeform_t *lf, object_t *o);
int canweild(lifeform_t *lf, object_t *o);
int cantakeoff(lifeform_t *lf, object_t *o);
void die(lifeform_t *lf);
void fightback(lifeform_t *lf, lifeform_t *attacker);
lifeform_t *findlf(map_t *m, int lfid);
race_t *findrace(enum RACE id);
void gainhp(lifeform_t *lf, int amt);
int getarmour(lifeform_t *lf);
object_t *getbestweapon(lifeform_t *lf);
char *getbodypartname(enum BODYPART bp);
char *getbodypartequipname(enum BODYPART bp);
object_t *getequippedob(obpile_t *op, enum BODYPART bp);
int getlfattackspeed(lifeform_t *lf);
int getmovespeed(lifeform_t *lf);
char *getlfname(lifeform_t *lf, char *buf);
race_t *getrandomlf(map_t *map, int *level);
char *getspeedname(int speed, char *buf);
object_t *getweapon(lifeform_t *lf);
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, int damtype, lifeform_t *fromlf, char *damsrc);
void outfitlf(lifeform_t *lf);
void taketime(lifeform_t *lf, int howlong);