C# Class MCSharp.World.MapGenerator

显示文件 Open project: Voziv/MCSharp

Public Methods

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

Private Methods

Method Description
AddTerrainHeight ( float array, ushort x, ushort y, ushort width, float height ) : void
AddTree ( Map Lvl, ushort x, ushort z, ushort y, Random Rand ) : void
Evaluate ( Map lvl, float height ) : ushort
FilterAverage ( Map Lvl ) : void
GenerateFault ( float array, Map 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, Map Lvl, string type, Random rand ) : void
GetAverage5 ( ushort x, ushort y, Map Lvl ) : float
GetAverage9 ( ushort x, ushort y, Map Lvl ) : float
GetPixel ( ushort x, ushort y, Map Lvl ) : float
Interpolate ( float a, float b, float x ) : float
InterpolatedNoise ( float x, float y, int seed ) : float
NegateEdge ( ushort x, ushort y, Map 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 ( Map Lvl, ushort x, ushort z, ushort y, short dist ) : bool

Method Details

GenerateMap() public method

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

MapGenerator() public method

public MapGenerator ( ) : System
return System