C# Class fCraft.MapGenerator

Represents a type of map generator. Provides general information about this generator, and ways to create IMapGeneratorParameters objects.
Datei anzeigen Open project: GlennMR/800Craft-Client Class Usage Examples

Private Properties

Property Type Description
Displace double
Feedback void
GenerateHeightmap ].double[
Rectify double

Public Methods

Method Description
DivideGrid ( double &points, double x, double y, int width, int height, double c1, double c2, double c3, double c4, bool isTop ) : void
GenerateMap ( MapGeneratorParameters parameters ) : void

Private Methods

Method Description
Displace ( double SmallSize ) : double
Feedback ( string message ) : void
GenerateHeightmap ( int iWidth, int iHeight ) : ].double[
Rectify ( double iNum ) : double

Method Details

DivideGrid() public method

public DivideGrid ( double &points, double x, double y, int width, int height, double c1, double c2, double c3, double c4, bool isTop ) : void
points double
x double
y double
width int
height int
c1 double
c2 double
c3 double
c4 double
isTop bool
return void

GenerateMap() public method

public GenerateMap ( MapGeneratorParameters parameters ) : void
parameters MapGeneratorParameters
return void