Home | History | Annotate | Download | only in robots

Lines Matching refs:hp

196 	COORD *hp, *end, *minhp = NULL;
201 for (hp = Scrap; hp < end; hp++) {
202 if (hp->x == 0 && hp->y == 0)
204 tdist = distance(My_pos.x, My_pos.y, hp->x, hp->y);
206 minhp = hp;
261 move_between(COORD *rob, COORD *hp)
273 dx = - sign(My_pos.x - hp->x);
284 dy = -sign(My_pos.y - hp->y);
298 dy = sign(((slope * ((float) hp->x)) + cons) -
299 ((float) hp->y));
302 dx = sign(((slope * ((float) hp->x)) + cons) -
303 ((float) hp->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)