C# 클래스 HPASharp.Cluster

파일 보기 프로젝트 열기: Rydra/HierarchicalPathfinder 1 사용 예제들

공개 메소드들

메소드 설명
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

비공개 메소드들

메소드 설명
ComputePathBetweenEntrances ( EntrancePoint e1, EntrancePoint e2 ) : void
GetEntrancePositionIndex ( EntrancePoint entrancePoint ) : int

Gets the index of the entrance point inside this cluster

메소드 상세

AddEntrance() 공개 메소드

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
리턴 int

AreConnected() 공개 메소드

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

AreConnected() 공개 메소드

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

Cluster() 공개 메소드

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
리턴 System

ComputeInternalPaths() 공개 메소드

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

ComputePath() 공개 메소드

public ComputePath ( int start, int target ) : List
start int
target int
리턴 List

GetDistance() 공개 메소드

public GetDistance ( int localIdx1, int localIdx2 ) : int
localIdx1 int
localIdx2 int
리턴 int

GetGlobalAbsNodeId() 공개 메소드

public GetGlobalAbsNodeId ( int localIdx ) : int
localIdx int
리턴 int

GetLocalPosition() 공개 메소드

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

GetNrEntrances() 공개 메소드

public GetNrEntrances ( ) : int
리턴 int

GetPath() 공개 메소드

public GetPath ( int localIdx1, int localIdx2 ) : List
localIdx1 int
localIdx2 int
리턴 List

RemoveLastEntranceRecord() 공개 메소드

public RemoveLastEntranceRecord ( ) : void
리턴 void

UpdatePaths() 공개 메소드

public UpdatePaths ( int localEntranceId ) : void
localEntranceId int
리턴 void