コード例 #1
0
ファイル: init.c プロジェクト: the-only-ahmed/wolf-3D
void	init(t_env *e)
{
	void	*libre;

	cursor(e);
	e->map = ft_lecture(e->stage->str, e);
	libre = e->stage;
	if (e->check_x != 500)
	{
		e->posx = e->check_x;
		e->posy = e->check_y;
		delete_check(e);
	}
	else
	{
		e->posx = e->enter_x;
		e->posy = e->enter_y;
	}
	vars_init(e);
	fill_texture(e);
	fill_obj(e);
	level_image(e);
	e->stage = e->stage->next;
	free(libre);
}
コード例 #2
0
ファイル: handle.cpp プロジェクト: TimothyKwok/Parex
handle& handle::operator=(const handle &rhs)
{
	++*rhs.count;
	delete_check();
	p = rhs.p;
	count = rhs.count;

	return *this;
}
コード例 #3
0
ファイル: handle.cpp プロジェクト: TimothyKwok/Parex
handle::~handle()
{
	delete_check();
}