Home | History | Annotate | Download | only in robots

Lines Matching refs:My_pos

142                 test.x = My_pos.x + xinc(*m);
143 test.y = My_pos.y + yinc(*m);
179 tdist = distance(My_pos.x, My_pos.y, rob->x, rob->y);
204 tdist = distance(My_pos.x, My_pos.y, hp->x, hp->y);
251 dx = sign(My_pos.x - rob->x);
252 dy = sign(My_pos.y - rob->y);
267 if (My_pos.x == rob->x) {
273 dx = - sign(My_pos.x - hp->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);
284 dy = -sign(My_pos.y - hp->y);
289 slope = (My_pos.y - rob->y) / (My_pos.x - rob->x);
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));
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)