Home | History | Annotate | Download | only in sail

Lines Matching defs:sq

77 	struct ship *sp, *sq;
91 foreachship(sq) {
92 if (!Xsnagged2(sp, sq))
94 if (meleeing(sp, sq))
96 if (!sq->file->dir
97 || sp->nationality == capship(sq)->nationality)
99 switch (sp->specs->class - sq->specs->class) {
103 sendbp(sp, sq, crew[0]*100, 0);
107 sendbp(sp, sq, crew[1]*10, 0);
114 sendbp(sp, sq, crew[0]*100+crew[1]*10,
122 sendbp(sp, sq, crew[0]*100+crew[1]*10,
129 sendbp(sp, sq, crew[0]*100+crew[1]*10+crew[2],
239 struct ship *sp, *sq;
244 for (sq = sp + 1; sq < ls; sq++)
245 if (sq->file->dir && meleeing(sp, sq) &&
246 meleeing(sq, sp))
247 fightitout(sp, sq, 0);
249 foreachship(sq) {
250 if (sq->file->dir && meleeing(sq, sp))
251 thwart = fightitout(sp, sq, 1);
256 foreachship(sq) {
257 if (sq->file->dir && meleeing(sq, sp))
258 unboard(sq, sp, 0);
259 unboard(sp, sq, 0);