C# 클래스 HPASharp.HierarchicalMap

Abstract maps represent, as the name implies, an abstraction built over the concrete map.
상속: IMap
파일 보기 프로젝트 열기: Rydra/HierarchicalPathfinder 1 사용 예제들

공개 메소드들

메소드 설명
AddEdge ( int sourceNodeId, int destNodeId, int cost, int level = 1, bool inter = false ) : void
BelongToSameCluster ( int node1Id, int node2Id, int level ) : bool
FindClusterForPosition ( Position pos ) : Cluster
GetCluster ( int id ) : Cluster
GetCurrentClusterRectangle ( ) : Rectangle
GetHeuristic ( int startNodeId, int targetNodeId ) : int
GetNeighbours ( int nodeId ) : IEnumerable

Gets the neighbours(successors) of the nodeId for the level set in the currentLevel

GetNodeEdges ( int nodeId ) : AbsTilingEdgeInfo>.Edge>.List
GetOffset ( int level ) : int
HierarchicalMap ( ConcreteMap concreteMap, int clusterSize, int maxLevel ) : System
PositionInCurrentCluster ( Position position ) : bool
SetCurrentCluster ( Position pos, int level ) : void

Defines the bounding box of the cluster we want to process based on a given level and a position in the grid

SetCurrentCluster ( int x, int y, int offset ) : void

Defines the bounding box of the cluster we want to process

SetCurrentLevel ( int level ) : void
SetType ( TileType tileType ) : void

메소드 상세

AddEdge() 공개 메소드

public AddEdge ( int sourceNodeId, int destNodeId, int cost, int level = 1, bool inter = false ) : void
sourceNodeId int
destNodeId int
cost int
level int
inter bool
리턴 void

BelongToSameCluster() 공개 메소드

public BelongToSameCluster ( int node1Id, int node2Id, int level ) : bool
node1Id int
node2Id int
level int
리턴 bool

FindClusterForPosition() 공개 메소드

public FindClusterForPosition ( Position pos ) : Cluster
pos Position
리턴 Cluster

GetCluster() 공개 메소드

public GetCluster ( int id ) : Cluster
id int
리턴 Cluster

GetCurrentClusterRectangle() 공개 메소드

public GetCurrentClusterRectangle ( ) : Rectangle
리턴 HPASharp.Infrastructure.Rectangle

GetHeuristic() 공개 메소드

public GetHeuristic ( int startNodeId, int targetNodeId ) : int
startNodeId int
targetNodeId int
리턴 int

GetNeighbours() 공개 메소드

Gets the neighbours(successors) of the nodeId for the level set in the currentLevel
public GetNeighbours ( int nodeId ) : IEnumerable
nodeId int
리턴 IEnumerable

GetNodeEdges() 공개 메소드

public GetNodeEdges ( int nodeId ) : AbsTilingEdgeInfo>.Edge>.List
nodeId int
리턴 AbsTilingEdgeInfo>.Edge>.List

GetOffset() 공개 메소드

public GetOffset ( int level ) : int
level int
리턴 int

HierarchicalMap() 공개 메소드

public HierarchicalMap ( ConcreteMap concreteMap, int clusterSize, int maxLevel ) : System
concreteMap ConcreteMap
clusterSize int
maxLevel int
리턴 System

PositionInCurrentCluster() 공개 메소드

public PositionInCurrentCluster ( Position position ) : bool
position Position
리턴 bool

SetCurrentCluster() 공개 메소드

Defines the bounding box of the cluster we want to process based on a given level and a position in the grid
public SetCurrentCluster ( Position pos, int level ) : void
pos Position
level int
리턴 void

SetCurrentCluster() 공개 메소드

Defines the bounding box of the cluster we want to process
public SetCurrentCluster ( int x, int y, int offset ) : void
x int
y int
offset int
리턴 void

SetCurrentLevel() 공개 메소드

public SetCurrentLevel ( int level ) : void
level int
리턴 void

SetType() 공개 메소드

public SetType ( TileType tileType ) : void
tileType TileType
리턴 void