C# Class MCSharp.World.MapGenerator

Afficher le fichier Open project: Voziv/MCSharp

Méthodes publiques

Méthode Description
GenerateMap ( Map Lvl, string type ) : bool
MapGenerator ( ) : System

Private Methods

Méthode 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 méthode

public GenerateMap ( Map Lvl, string type ) : bool
Lvl Map
type string
Résultat bool

MapGenerator() public méthode

public MapGenerator ( ) : System
Résultat System