Lines Matching refs:dir
49 if (sp->file->captain[0] || sp->file->dir == 0) in thinkofgrapples()
80 if (sp->file->dir == 0) in checkup()
96 if (sp != sq && sq->file->dir && range(sp, sq) < 4) in checkup()
112 if (sp->file->struck || sp->file->dir == 0) in prizecheck()
141 try(command, commandl, temp, sizeof temp, ma, ta, af, ma, from->file->dir, in closeon()
152 int row, col, dir, total, ran; in score() local
155 if ((dir = fp->dir) == 0) in score()
160 move_ship(movement, ship, &fp->dir, &fp->row, &fp->col, &drift); in score()
168 if ((ran = portside(ship, to, 1) - fp->dir) == 4 || ran == -4) in score()
174 fp->dir = dir; in score()
180 move_ship(const char *p, struct ship *ship, unsigned char *dir, short *row, in move_ship() argument
189 if (++*dir == 9) in move_ship()
190 *dir = 1; in move_ship()
193 if (--*dir == 0) in move_ship()
194 *dir = 8; in move_ship()
199 if (*dir % 2 == 0) in move_ship()
203 *row -= dr[*dir] * dist; in move_ship()
204 *col -= dc[*dir] * dist; in move_ship()
222 int af, int vma, int dir, struct ship *f, struct ship *t, int *high, in try() argument
239 dir, f, t, high, rakeme); in try()
249 …, temp, templ, ma-1, ta-1, af, min(ma-1, maxmove(f, (dir == 8 ? 1 : dir+1), 0)), (dir == 8 ? 1 : d… in try()
259 …andl, temp, templ, ma-1, ta-1, af, (min(ma-1,maxmove(f, (dir-1 ? dir-1 : 8), 0))), (dir-1 ? dir -1… in try()