Lines Matching refs:from
16 * may be used to endorse or promote products derived from this software
56 range(struct ship *from, struct ship *to)
64 stern1r = bow1r = from->file->row;
65 stern1c = bow1c = from->file->col;
72 stern1r += dr[from->file->dir];
73 stern1c += dc[from->file->dir];
83 closestenemy(struct ship *from, int side, int anyship)
90 a = capship(from)->nationality;
92 if (sp == from)
98 if (side && gunsbear(from, sp) != side)
100 dist = range(from, sp);
138 gunsbear(struct ship *from, struct ship *to)
143 Dr = from->file->row - to->file->row;
144 Dc = to->file->col - from->file->col;
146 if ((ang = angle(Dr, Dc) - from->file->dir + 1) < 1)
160 portside(struct ship *from, struct ship *on, int quick)
165 Dr = from->file->row - on->file->row;
166 Dc = on->file->col - from->file->col;