C# Класс AStarPathfinder, Augmented_Tactics

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
FinalPath List

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

Метод Описание
AStarPathfinder ( ) : System.Collections.Generic
CellsFromPath ( ) : List
CellsFromPath ( int size ) : List
FindPath ( Cell, startCell, Cell, goalCell, List map, bool targetCellMustBeFree ) : void
MovementCost ( Node, a, Node, b ) : float
PointsFromPath ( ) : List

Приватные методы

Метод Описание
ExtractBestNodeFromOpenList ( ) : Node,
FindInCloseList ( Node, n ) : Node,
FindInOpenList ( Node, n ) : Node,
FindValidFourNeighbours ( Node, n ) : void
FindValidFourNeighboursIgnoreTargetCell ( Node, n ) : void
Heuristic ( Node, n ) : float
NodeIsGoal ( Node, node ) : bool
PrepareNewNodeFrom ( Node, n, int x, int y ) : Node,

Описание методов

AStarPathfinder() публичный Метод

public AStarPathfinder ( ) : System.Collections.Generic
Результат System.Collections.Generic

CellsFromPath() публичный Метод

public CellsFromPath ( ) : List
Результат List

CellsFromPath() публичный Метод

public CellsFromPath ( int size ) : List
size int
Результат List

FindPath() публичный Метод

public FindPath ( Cell, startCell, Cell, goalCell, List map, bool targetCellMustBeFree ) : void
startCell Cell,
goalCell Cell,
map List
targetCellMustBeFree bool
Результат void

MovementCost() публичный Метод

public MovementCost ( Node, a, Node, b ) : float
a Node,
b Node,
Результат float

PointsFromPath() публичный Метод

public PointsFromPath ( ) : List
Результат List

Описание свойств

FinalPath публичное свойство

public List FinalPath
Результат List