PathFinder class

Versione italiana
Expose synchronous and asynchronous path finding methods in a node map.

Properties

Name Type Description
NodeMap INodeMap Node map where to find the path

Methods

Name Paramters types Return type Description
FindPath Void Node[] Find the shortest path in the node matrix
AsynchFindPath Find, in asynchronous mode, the shortest path in the node matrix
StopAsynchFind Guid Void Stop a specific asynchronous search instance
StopAllAsynchFind Void Void Stop all active asynchronous search instances

Events

Name Type Description
PathFound PathFoundEventHandler Invoked when the asynch path finding function return

Constructors

Name Paramters types Description
PathFinder(INodeMap nodeMap) INodeMap Create a new PathFinder instance

Remarks

The PathFinder class do all of his operations on a node map class derived from the INodeMap interface, interrogating him for obtain the starting node, the ending node and the childs node of a specific node whith their costs. A wrong implementation of the node map will compromise the finding functionality.
The finding functions are recursives, so their efficiency are bound to the number of childs that every node can have.

Last edited Jul 28, 2010 at 11:44 AM by Arconte, version 7

Comments

No comments yet.