Table of Contents

Class Landscape

Namespace
LibGameAI.PCG
Assembly
PCG.dll
public static class Landscape
Inheritance
Landscape
Inherited Members

Methods

DiamondSquare(float[,], float, float, Func<float>)

public static void DiamondSquare(float[,] landscape, float maxInitHeight, float roughness, Func<float> randFloat)

Parameters

landscape float[,]
maxInitHeight float
roughness float
randFloat Func<float>

FaultModifier(float[,], float, Func<float>, float)

public static void FaultModifier(float[,] landscape, float depth, Func<float> randFloat, float decreaseDistance = 0)

Parameters

landscape float[,]
depth float
randFloat Func<float>
decreaseDistance float

Sandpile(float[,], float, float, float, float, bool, bool, Func<int, int>, Func<double>, (int x, int y)[])

public static void Sandpile(float[,] landscape, float threshold, float increment, float decrement, float grainDropDensity, bool staticDrop, bool stochastic, Func<int, int> randInt, Func<double> randDouble, (int x, int y)[] neighs = null)

Parameters

landscape float[,]
threshold float
increment float
decrement float
grainDropDensity float
staticDrop bool
stochastic bool
randInt Func<int, int>
randDouble Func<double>
neighs (int x, int y)[]

ThermalErosion(float[,], float)

public static void ThermalErosion(float[,] landscape, float impact)

Parameters

landscape float[,]
impact float