C# Class VoidLib.Navigation.Pathfinding.PathFinder

Show file Open project: andrewmunro/Void

Public Methods

Method Description
buildPath ( PathNode destinationNode, PathNode startNode ) : List
euclidianHeuristic ( PathNode node, PathNode destinationNode, float cost = 1.0f ) : float
findPath ( PathNode firstNode, PathNode destinationNode ) : List
isClosed ( PathNode node, List closedNodes ) : bool
isOpen ( PathNode node, List openNodes ) : bool

Method Details

buildPath() public static method

public static buildPath ( PathNode destinationNode, PathNode startNode ) : List
destinationNode PathNode
startNode PathNode
return List

euclidianHeuristic() public static method

public static euclidianHeuristic ( PathNode node, PathNode destinationNode, float cost = 1.0f ) : float
node PathNode
destinationNode PathNode
cost float
return float

findPath() public static method

public static findPath ( PathNode firstNode, PathNode destinationNode ) : List
firstNode PathNode
destinationNode PathNode
return List

isClosed() public static method

public static isClosed ( PathNode node, List closedNodes ) : bool
node PathNode
closedNodes List
return bool

isOpen() public static method

public static isOpen ( PathNode node, List openNodes ) : bool
node PathNode
openNodes List
return bool