C# Class HPASharp.Cluster

Afficher le fichier Open project: Rydra/HierarchicalPathfinder Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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
Résultat int

AreConnected() public méthode

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

AreConnected() public méthode

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

Cluster() public méthode

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
Résultat System

ComputeInternalPaths() public méthode

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

ComputePath() public méthode

public ComputePath ( int start, int target ) : List
start int
target int
Résultat List

GetDistance() public méthode

public GetDistance ( int localIdx1, int localIdx2 ) : int
localIdx1 int
localIdx2 int
Résultat int

GetGlobalAbsNodeId() public méthode

public GetGlobalAbsNodeId ( int localIdx ) : int
localIdx int
Résultat int

GetLocalPosition() public méthode

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

GetNrEntrances() public méthode

public GetNrEntrances ( ) : int
Résultat int

GetPath() public méthode

public GetPath ( int localIdx1, int localIdx2 ) : List
localIdx1 int
localIdx2 int
Résultat List

RemoveLastEntranceRecord() public méthode

public RemoveLastEntranceRecord ( ) : void
Résultat void

UpdatePaths() public méthode

public UpdatePaths ( int localEntranceId ) : void
localEntranceId int
Résultat void