Lines Matching defs:ship
47 static int is_isolated(struct ship *);
48 static int push(struct ship *, struct ship *);
49 static void step(struct ship *, int, char *);
55 struct ship *sp, *sq;
65 struct ship *closest;
193 struct ship *sp;
202 is_isolated(struct ship *ship)
204 struct ship *sp;
207 if (ship != sp && range(ship, sp) <= 10)
214 push(struct ship *from, struct ship *to)
228 step(struct ship *sp, int com, char *moved)
269 sendbp(struct ship *from, struct ship *to, int sections, int isdefense)
291 is_toughmelee(struct ship *ship, struct ship *to, int isdefense, int count)
298 qual = ship->specs->qual;
299 bp = isdefense ? ship->file->DBP : ship->file->OBP;
303 ? ship->specs->crew1 * qual : 0;
305 ? ship->specs->crew2 * qual : 0;
307 ? ship->specs->crew3 * qual : 0;
312 OBP = is_toughmelee(to, ship, 0, count + 1);
313 dbp = is_toughmelee(ship, to, 1, count + 1);
314 DBP = is_toughmelee(to, ship, 1, count + 1);
324 struct ship *sp;
334 struct ship *sp;
336 struct ship *close;