C# Класс HPASharp.HierarchicalMap

Abstract maps represent, as the name implies, an abstraction built over the concrete map.
Наследование: IMap
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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