C# Class GameFramework.KdObjectTree

Exibir arquivo Open project: dreamanlan/CSharpGameFramework Class Usage Examples

Public Methods

Method Description
AddObjForBuild ( EntityInfo obj ) : void
BeginBuild ( int count ) : void
Clear ( ) : void
EndBuild ( ) : void
FullBuild ( IList objs ) : void
Query ( EntityInfo obj, float range, KdTreeObject>.MyAction visitor ) : void
Query ( EntityInfo obj, float range, MyFunc visitor ) : void
Query ( System.Vector3 pos, float range, KdTreeObject>.MyAction visitor ) : void
Query ( System.Vector3 pos, float range, MyFunc visitor ) : void
Query ( float x, float y, float z, float range, KdTreeObject>.MyAction visitor ) : void
Query ( float x, float y, float z, float range, MyFunc visitor ) : void
VisitTree ( MyAction visitor ) : void
VisitTree ( MyFunc visitor ) : void

Private Methods

Method Description
BuildImpl ( ) : void
CalcSquareDistToRectangle ( float distMinX, float distMaxX, float distMinZ, float distMaxZ ) : float
QueryImpl ( System.Vector3 pos, float range, float rangeSq, MyFunc visitor ) : void
Sqr ( float v ) : float
VisitTreeImpl ( MyFunc visitor ) : void

Method Details

AddObjForBuild() public method

public AddObjForBuild ( EntityInfo obj ) : void
obj EntityInfo
return void

BeginBuild() public method

public BeginBuild ( int count ) : void
count int
return void

Clear() public method

public Clear ( ) : void
return void

EndBuild() public method

public EndBuild ( ) : void
return void

FullBuild() public method

public FullBuild ( IList objs ) : void
objs IList
return void

Query() public method

public Query ( EntityInfo obj, float range, KdTreeObject>.MyAction visitor ) : void
obj EntityInfo
range float
visitor KdTreeObject>.MyAction
return void

Query() public method

public Query ( EntityInfo obj, float range, MyFunc visitor ) : void
obj EntityInfo
range float
visitor MyFunc
return void

Query() public method

public Query ( System.Vector3 pos, float range, KdTreeObject>.MyAction visitor ) : void
pos System.Vector3
range float
visitor KdTreeObject>.MyAction
return void

Query() public method

public Query ( System.Vector3 pos, float range, MyFunc visitor ) : void
pos System.Vector3
range float
visitor MyFunc
return void

Query() public method

public Query ( float x, float y, float z, float range, KdTreeObject>.MyAction visitor ) : void
x float
y float
z float
range float
visitor KdTreeObject>.MyAction
return void

Query() public method

public Query ( float x, float y, float z, float range, MyFunc visitor ) : void
x float
y float
z float
range float
visitor MyFunc
return void

VisitTree() public method

public VisitTree ( MyAction visitor ) : void
visitor MyAction
return void

VisitTree() public method

public VisitTree ( MyFunc visitor ) : void
visitor MyFunc
return void