Example #1
0
void	CVecLine::DestroyObjs()
{
	// meshinfo, x, y, z 以外のpointer memberの destroy
	CBaseDat::DestroyObjs();
	
	// meshinfo, x, y, z のdestroy
	DestroyLine();

}
Example #2
0
int	CVecLine::InitVecLine( CMeshInfo* srcmeshinfo )
{
	int ret;

	DestroyLine(); 	
	ret = CreateLine( srcmeshinfo );
	if( ret ){
		DbgOut( "charpos2.cpp : CVecLine : InitVecLine : CreateLine error !!!\n" );
		return 1;
	}

	return 0;
}
void AGameplayPawn::DestroyTerrain(FVector2D mousePos)
{
	int x = WorldToGridX(mousePos.X);
	int y = WorldToGridY(mousePos.Y);
	if (PrevMouseX == -32767) 
	{
		DestroySquare(x, y, 5);
	}
	else 
	{
		DestroyLine(PrevMouseX, PrevMouseY, x, y, 5);
	}
	PrevMouseX = x;
	PrevMouseY = y;
}