C# Class HPASharp.Cluster

Exibir arquivo Open project: Rydra/HierarchicalPathfinder Class Usage Examples

Public Methods

Method Description
AddEntrance ( int abstractNodeId, Position relativePosition ) : int

Adds an entrance point to the cluster and returns the entrance index assigned for the point

AreConnected ( EntrancePoint point1, EntrancePoint point2 ) : bool

Tells whether a path exists inside the cluster between localIdx1 and localIdx2

AreConnected ( int localIdx1, int localIdx2 ) : bool

Tells whether a path exists inside the cluster between localIdx1 and localIdx2

Cluster ( ConcreteMap concreteMap, int id, int clusterX, int clusterY, Position origin, Size size ) : System
ComputeInternalPaths ( ) : void

Computes the paths that lie inside the cluster, connecting the several entrances among them

ComputePath ( int start, int target ) : List
GetDistance ( int localIdx1, int localIdx2 ) : int
GetGlobalAbsNodeId ( int localIdx ) : int
GetLocalPosition ( int entranceLocalIndex ) : int

Gets the index of an entrance point of this cluster

GetNrEntrances ( ) : int
GetPath ( int localIdx1, int localIdx2 ) : List
RemoveLastEntranceRecord ( ) : void
UpdatePaths ( int localEntranceId ) : void

Private Methods

Method Description
ComputePathBetweenEntrances ( EntrancePoint e1, EntrancePoint e2 ) : void
GetEntrancePositionIndex ( EntrancePoint entrancePoint ) : int

Gets the index of the entrance point inside this cluster

Method Details

AddEntrance() public method

Adds an entrance point to the cluster and returns the entrance index assigned for the point
public AddEntrance ( int abstractNodeId, Position relativePosition ) : int
abstractNodeId int
relativePosition Position
return int

AreConnected() public method

Tells whether a path exists inside the cluster between localIdx1 and localIdx2
public AreConnected ( EntrancePoint point1, EntrancePoint point2 ) : bool
point1 EntrancePoint
point2 EntrancePoint
return bool

AreConnected() public method

Tells whether a path exists inside the cluster between localIdx1 and localIdx2
public AreConnected ( int localIdx1, int localIdx2 ) : bool
localIdx1 int
localIdx2 int
return bool

Cluster() public method

public Cluster ( ConcreteMap concreteMap, int id, int clusterX, int clusterY, Position origin, Size size ) : System
concreteMap ConcreteMap
id int
clusterX int
clusterY int
origin Position
size Size
return System

ComputeInternalPaths() public method

Computes the paths that lie inside the cluster, connecting the several entrances among them
public ComputeInternalPaths ( ) : void
return void

ComputePath() public method

public ComputePath ( int start, int target ) : List
start int
target int
return List

GetDistance() public method

public GetDistance ( int localIdx1, int localIdx2 ) : int
localIdx1 int
localIdx2 int
return int

GetGlobalAbsNodeId() public method

public GetGlobalAbsNodeId ( int localIdx ) : int
localIdx int
return int

GetLocalPosition() public method

Gets the index of an entrance point of this cluster
public GetLocalPosition ( int entranceLocalIndex ) : int
entranceLocalIndex int
return int

GetNrEntrances() public method

public GetNrEntrances ( ) : int
return int

GetPath() public method

public GetPath ( int localIdx1, int localIdx2 ) : List
localIdx1 int
localIdx2 int
return List

RemoveLastEntranceRecord() public method

public RemoveLastEntranceRecord ( ) : void
return void

UpdatePaths() public method

public UpdatePaths ( int localEntranceId ) : void
localEntranceId int
return void