C# Класс MCDawn.MapGenerator

Показать файл Открыть проект

Открытые методы

Метод Описание
CreateSphere ( MCDawn.Level l, byte blockChosen ) : void
GenerateMap ( MCDawn.Level Lvl, string type ) : bool
MapGenerator ( ) : System

Приватные методы

Метод Описание
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

Описание методов

CreateSphere() публичный Метод

public CreateSphere ( MCDawn.Level l, byte blockChosen ) : void
l MCDawn.Level
blockChosen byte
Результат void

GenerateMap() публичный Метод

public GenerateMap ( MCDawn.Level Lvl, string type ) : bool
Lvl MCDawn.Level
type string
Результат bool

MapGenerator() публичный Метод

public MapGenerator ( ) : System
Результат System