Home | History | Annotate | Download | only in robots

Lines Matching defs:rob

173 	COORD *rob, *end, *minrob = NULL;
178 for (rob = Robots; rob < end; rob++) {
179 tdist = distance(My_pos.x, My_pos.y, rob->x, rob->y);
181 minrob = rob;
247 move_away(COORD *rob)
251 dx = sign(My_pos.x - rob->x);
252 dy = sign(My_pos.y - rob->y);
261 move_between(COORD *rob, COORD *hp)
267 if (My_pos.x == rob->x) {
274 dy = sign(My_pos.y - rob->y);
277 else if (My_pos.y == rob->y) {
283 dx = sign(My_pos.x - rob->x);
289 slope = (My_pos.y - rob->y) / (My_pos.x - rob->x);
290 cons = slope * rob->y;
291 if (ABS(My_pos.x - rob->x) > ABS(My_pos.y - rob->y)) {
297 dx = sign(My_pos.x - rob->x);
304 dy = sign(My_pos.y - rob->y);
308 My_pos.x, My_pos.y, rob->x, rob->y, hp->x, hp->y, dx, dy));
316 between(COORD *rob, COORD *hp)
319 if (hp->x > rob->x && My_pos.x < rob->x)
322 if (hp->x < rob->x && My_pos.x > rob->x)
327 if (hp->y < rob->y && My_pos.y > rob->y)
332 if (hp->y > rob->y && My_pos.y < rob->y)