PathFinder.AsynchFindPath(PathFoundEventHandler) method

Versione italiana
Find, in asynchronous mode, the shortest path in the node matrix giving the event to invoke.

Syntax
Guid AsynchFindPath(PathFoundEventHandler pathFoundEventDelegate);

Parameters

Name Type Description
pathFoundEventDelegate PathFoundEventHandler Delegate to invoke when the search end

Returns

Unique identifier of the search instance.

Remarks

This method start a thread to search the shortest path returning an identifier necessary to stop the search using the StopAsynchFind function
When the serch is completed, the function invoke the pathFoundEventDelegate event giving the found path. If the pathFoundEventDelegate event is not valorized an exception is thrown.

Last edited Jul 28, 2010 at 12:27 PM by Arconte, version 2

Comments

No comments yet.