C# Class MCLawl.MapGenerator

ファイルを表示 Open project: dekema2/MCDek Class Usage Examples

Public Methods

Method Description
GenerateMap ( Level Lvl, string type ) : bool
MapGenerator ( ) : System

Private Methods

Method Description
AddCactus ( Level Lvl, ushort x, ushort y, ushort z, Random Rand ) : void
AddTerrainHeight ( float array, ushort x, ushort y, ushort width, float height ) : void
AddTree ( Level Lvl, ushort x, ushort y, ushort z, Random Rand ) : void
Evaluate ( Level lvl, float height ) : ushort
FilterAverage ( Level Lvl ) : void
GenerateFault ( float array, Level Lvl, string type, Random rand ) : void
GenerateNormalized ( float array, float persistence, int octaves, int width, int height, int seed, float zoom ) : void
GeneratePerlinNoise ( float array, Level Lvl, string type, Random rand ) : void
GetAverage5 ( ushort x, ushort y, Level Lvl ) : float
GetAverage9 ( ushort x, ushort y, Level Lvl ) : float
GetPixel ( ushort x, ushort y, Level Lvl ) : float
Interpolate ( float a, float b, float x ) : float
InterpolatedNoise ( float x, float y, int seed ) : float
NegateEdge ( ushort x, ushort y, Level Lvl ) : float
Noise ( int x, int y, int seed ) : float
Range ( float input, float low, float high ) : float
SmoothNoise ( int x, int y, int seed ) : float
TreeCheck ( Level Lvl, ushort x, ushort z, ushort y, short dist ) : bool

Method Details

GenerateMap() public method

public GenerateMap ( Level Lvl, string type ) : bool
Lvl Level
type string
return bool

MapGenerator() public method

public MapGenerator ( ) : System
return System