C# Class fCraft.Forester

Vegetation generator for MapGenerator.
Datei anzeigen Open project: GlennMR/800craft Class Usage Examples

Public Methods

Method Description
Generate ( [ args ) : void
Plant ( [ args, Vector3I treeCoordinate ) : void
SexyPlant ( [ args, Vector3I treeCoordinate ) : void

Private Methods

Method Description
Cub ( float val ) : float
DistanceToBlock ( Map map, Vector3F coord, Vector3F vec, Block blockType ) : int
DistanceToBlock ( Map map, Vector3F coord, Vector3F vec, Block blockType, bool invert ) : int
FindRandomTreeLocation ( ForesterArgs args, int height ) : Vector3I
FindTrees ( ForesterArgs args, ICollection treelist ) : void
PlantMangroves ( ForesterArgs args, ICollection treelist ) : void
PlantRainForestTrees ( ForesterArgs args, ICollection treelist ) : void
PlantTrees ( ForesterArgs args, ICollection treelist ) : void
ProcessTrees ( ForesterArgs args, IList treelist ) : void
Sqr ( double val ) : double
Sqr ( float val ) : float
Sqr ( int val ) : int

Method Details

Generate() public static method

public static Generate ( [ args ) : void
args [
return void

Plant() public static method

public static Plant ( [ args, Vector3I treeCoordinate ) : void
args [
treeCoordinate Vector3I
return void

SexyPlant() public static method

public static SexyPlant ( [ args, Vector3I treeCoordinate ) : void
args [
treeCoordinate Vector3I
return void