예제 #1
0
파일: find_enemy.c 프로젝트: Sconso/Lemipc
void			find(t_info *info)
{
	t_coord		c;
	char		check;
	int			ret;

	if (info->game->players == 0)
		return ;
	c.x = 1;
	c.y = 1;
	check = 0;
	while (check != 2)
	{
		check = 0;
		if ((ret = v_find(info, c))
			|| (ret = h_find(info, c)))
			break ;
		if (info->x + c.x + 1 < info->game->width || info->x - (c.x + 1) >= 0)
			c.x++;
		else
			++check;
		if (info->y + c.y + 1 < info->game->height || info->y - (c.y + 1) >= 0)
			c.y++;
		else
			++check;
	}
	move(info, ret);
}
예제 #2
0
파일: prompt.c 프로젝트: xosevp/zmailer
void
prompt2_flush()
{
	conscell *d = v_find(PS2);

	if (d == NULL || cdr(d) == NULL || LIST(cdr(d))
	    || *(ps2 = (char *)cdr(d)->string) == '\0')
		ps2 = NULL;
}
예제 #3
0
 NodeStorageBase::iterator NodeStorageBase::find(float x, float z)
 {
   return v_find(x, z);
 }
예제 #4
0
 NodeStorageBase::iterator NodeStorageBase::find(ShaderScene const &state, float x, float z)
 {
   return v_find(state, x, z);
 }
예제 #5
0
 NodeStorageBase::iterator NodeStorageBase::find(NodeBase* node)
 {
   return v_find(node);
 }