C# Class MCDawn.MapGenerator

显示文件 Open project: jonnyli1125/MCDawn

Public Methods

Method Description
CreateSphere ( MCDawn.Level l, byte blockChosen ) : void
GenerateMap ( MCDawn.Level Lvl, string type ) : bool
MapGenerator ( ) : System

Private Methods

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

Method Details

CreateSphere() public method

public CreateSphere ( MCDawn.Level l, byte blockChosen ) : void
l MCDawn.Level
blockChosen byte
return void

GenerateMap() public method

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

MapGenerator() public method

public MapGenerator ( ) : System
return System