2010-12-02 12:17:54 +11:00
|
|
|
#include "defs.h"
|
|
|
|
|
2011-02-01 06:16:13 +11:00
|
|
|
int canandwillmove(lifeform_t *lf, int dir, enum ERROR *error);
|
2010-12-02 12:17:54 +11:00
|
|
|
int canmove(lifeform_t *lf, int dir, enum ERROR *error);
|
2011-02-16 05:21:33 +11:00
|
|
|
int celldangerous(lifeform_t *lf, cell_t *cell, enum ERROR *error);
|
2011-02-01 06:16:13 +11:00
|
|
|
int cellwalkable(lifeform_t *lf, cell_t *cell, enum ERROR *error);
|
|
|
|
int closedoorat(lifeform_t *lf, cell_t *c);
|
|
|
|
int closedoor(lifeform_t *lf, object_t *o);
|
2011-03-04 12:22:36 +11:00
|
|
|
int diropposite(int dir);
|
2010-12-07 18:34:26 +11:00
|
|
|
void dorandommove(lifeform_t *lf, int badmovesok);
|
2011-02-01 06:16:13 +11:00
|
|
|
int getdiraway(cell_t *src, cell_t *dst, int wantcheck);
|
2011-03-04 12:22:36 +11:00
|
|
|
int getdirtowards(cell_t *src, cell_t *dst, lifeform_t *srclf, int wantcheck);
|
|
|
|
int knockback(lifeform_t *lf, int dir, int howfar, lifeform_t *pusher);
|
2011-02-01 06:16:13 +11:00
|
|
|
int moveawayfrom(lifeform_t *lf, cell_t *dst);
|
|
|
|
int movelf(lifeform_t *lf, cell_t *newcell);
|
2011-03-18 12:25:18 +11:00
|
|
|
int moveto(lifeform_t *lf, cell_t *newcell, int onpurpose);
|
2011-02-01 06:16:13 +11:00
|
|
|
int movetowards(lifeform_t *lf, cell_t *dst);
|
|
|
|
int opendoorat(lifeform_t *lf, cell_t *c);
|
|
|
|
int opendoor(lifeform_t *lf, object_t *o);
|
|
|
|
int pullnextto(lifeform_t *lf, cell_t *c);
|
2011-03-16 15:45:46 +11:00
|
|
|
int teleportto(lifeform_t *lf, cell_t *c, int wantsmoke);
|
2011-03-18 12:25:18 +11:00
|
|
|
int trymove(lifeform_t *lf, int dir, int onpurpose);
|
2011-02-01 06:16:13 +11:00
|
|
|
int tryrun(lifeform_t *lf, int dir);
|
|
|
|
int willmove(lifeform_t *lf, int dir, enum ERROR *error);
|