nexus/ai.h

12 lines
572 B
C

#include "defs.h"
enum OBTYPE aigetattackspell(lifeform_t *lf, lifeform_t *victim);
void aigetspelltarget(lifeform_t *lf, objecttype_t *spelltype, lifeform_t *victim, lifeform_t **spelllf, cell_t **spellcell, object_t **spellob);
object_t * aigetwand(lifeform_t *lf);
void aimove(lifeform_t *lf);
int aipickup(lifeform_t *lf, object_t *o);
int aispellok(lifeform_t *lf, objecttype_t *st, lifeform_t *victim);
object_t *hasbetterarmour(lifeform_t *lf, obpile_t *op);
object_t *hasbetterweapon(lifeform_t *lf, obpile_t *op);
int lookforobs(lifeform_t *lf, int covetsonly);