Home | History | Annotate | Download | only in sail

Lines Matching refs:ship

51 static int score(struct ship *, struct ship *, char *, size_t, int);
52 static void move_ship(struct ship *, const char *, unsigned char *,
54 static void try(struct ship *f, struct ship *t,
65 struct ship *sp, *sq;
96 struct ship *sp, *sq;
134 struct ship *sp;
163 closeon(struct ship *from, struct ship *to, char *command, size_t commandmax,
176 score(struct ship *ship, struct ship *to, char *movement, size_t movementmax,
181 struct File *fp = ship->file;
188 move_ship(ship, movement, &fp->dir, &fp->row, &fp->col, &drift);
192 ran = range(ship, to);
194 if (ran < 4 && gunsbear(ship, to))
196 if ((ran = portside(ship, to, 1) - fp->dir) == 4 || ran == -4)
208 move_ship(struct ship *ship, const char *p, unsigned char *dir,
238 if ((ship->specs->class >= 3 && !snagged(ship))
249 try(struct ship *f, struct ship *t,