C# Class fCraft.MapGeneration.Forester.ProceduralTree

Inheritance: Tree
显示文件 Open project: fragmer/fCraft

Private Properties

Property Type Description

Public Methods

Method Description
MakeFoliage ( ) : void
MakeTrunk ( ) : void
Prepare ( ) : void

Protected Methods

Method Description
CrossSection ( Vector3I center, float radius, int dirAxis, Block matIndex ) : void
FoliageCluster ( Vector3I center ) : void
MakeBranches ( ) : void
MakeRoots ( IList rootBases ) : void
MakeRoots ( [ rootBases ) : void
ShapeFunc ( int z ) : float
TaperedLimb ( Vector3I start, Vector3I end, float startSize, float endSize ) : void

Method Details

CrossSection() protected method

protected CrossSection ( Vector3I center, float radius, int dirAxis, Block matIndex ) : void
center Vector3I
radius float
dirAxis int
matIndex Block
return void

FoliageCluster() protected method

protected FoliageCluster ( Vector3I center ) : void
center Vector3I
return void

MakeBranches() protected method

protected MakeBranches ( ) : void
return void

MakeFoliage() public method

public MakeFoliage ( ) : void
return void

MakeRoots() protected method

protected MakeRoots ( IList rootBases ) : void
rootBases IList
return void

MakeRoots() protected method

protected MakeRoots ( [ rootBases ) : void
rootBases [
return void

MakeTrunk() public method

public MakeTrunk ( ) : void
return void

Prepare() public method

public Prepare ( ) : void
return void

ShapeFunc() protected method

protected ShapeFunc ( int z ) : float
z int
return float

TaperedLimb() protected method

protected TaperedLimb ( Vector3I start, Vector3I end, float startSize, float endSize ) : void
start Vector3I
end Vector3I
startSize float
endSize float
return void