nexus/move.h

22 lines
951 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
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-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);
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);
int getdirtowards(cell_t *src, cell_t *dst, int wantcheck);
int moveawayfrom(lifeform_t *lf, cell_t *dst);
int movelf(lifeform_t *lf, cell_t *newcell);
2010-12-02 12:17:54 +11:00
int moveto(lifeform_t *lf, cell_t *newcell);
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);
int teleportto(lifeform_t *lf, cell_t *c);
2010-12-02 12:17:54 +11:00
int trymove(lifeform_t *lf, int dir);
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);