32 lines
1.6 KiB
C
32 lines
1.6 KiB
C
#include "defs.h"
|
|
|
|
int canandwillmove(lifeform_t *lf, int dir, enum ERROR *error);
|
|
int canswapwith(lifeform_t *lf, lifeform_t *lf2);
|
|
int celldangerous(lifeform_t *lf, cell_t *cell, int onlyifknown, enum ERROR *error);
|
|
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);
|
|
int diropposite(int dir);
|
|
int dorandommove(lifeform_t *lf, int badmovesok, int restonfail);
|
|
int getdiraway(cell_t *src, cell_t *dst, lifeform_t *srclf, int wantcheck, int dirtype);
|
|
int getdirtowards(cell_t *src, cell_t *dst, lifeform_t *srclf, int wantcheck, int dirtype);
|
|
int knockback(lifeform_t *lf, int dir, int howfar, lifeform_t *pusher, int fallcheckdiff);
|
|
int moveawayfrom(lifeform_t *lf, cell_t *dst, int dirtype);
|
|
int moveclear(lifeform_t *lf, int dir, enum ERROR *error);
|
|
int moveeffects(lifeform_t *lf);
|
|
int movelf(lifeform_t *lf, cell_t *newcell);
|
|
int moveto(lifeform_t *lf, cell_t *newcell, int onpurpose, int dontclearmsg);
|
|
int movetowards(lifeform_t *lf, cell_t *dst, int dirtype);
|
|
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 initiatemove(lifeform_t *lf, cell_t *cell, int *didmsg);
|
|
int isorthogonal(int dir);
|
|
int ispossiblemove(lifeform_t *lf, int dir);
|
|
void swapplaces(lifeform_t *lf1, lifeform_t *lf2, int onpurpose);
|
|
int teleportto(lifeform_t *lf, cell_t *c, int wantsmoke);
|
|
int trymove(lifeform_t *lf, int dir, int onpurpose);
|
|
int tryrun(lifeform_t *lf, int dir);
|
|
int walkoffmap(lifeform_t *lf, int dir, int onpurpose);
|
|
int willmove(lifeform_t *lf, int dir, enum ERROR *error);
|