C# Class HPASharp.Search.AStarNode

An A* node embeds the status of a processed node, containing information like the cost it's taken to reach it (Cost So far, G), the expected cost to reach the goal (The heuristic, H), the parent where this node came from (which will serve later to reconstruct best paths) the current Status of the node (Open, Closed, Unexplored, see CellStatus documentation for more information) and the F-score that serves to compare which nodes are the best
Show file Open project: Rydra/HierarchicalPathfinder Class Usage Examples

Public Properties

Property Type Description
F int
G int
H int
Parent int
Status CellStatus

Public Methods

Method Description
AStarNode ( int parent, int g, int h, CellStatus status ) : System

Method Details

AStarNode() public method

public AStarNode ( int parent, int g, int h, CellStatus status ) : System
parent int
g int
h int
status CellStatus
return System

Property Details

F public property

public int F
return int

G public property

public int G
return int

H public property

public int H
return int

Parent public property

public int Parent
return int

Status public property

public CellStatus Status
return CellStatus