Pathfinderclass
no description available
class
Pathfinder
: object
Superclass Tree (in declaration order)
Pathfinder
` object`
Subclass Tree
(none)
Global Objects
pcRouteFinder
relationPathfinder
routeFinder
Summary of Properties
cachedRoute
currentDestination
nodesVisited
pathsFound
steps
Summary of Methods
findDestinations
findPath
takeOneStep
Properties
cachedRoute
The most recently calculated route
currentDestination
The destination of the most recently calculated route.
nodesVisited
A Vector containing all the nodes we have visited so far in our attempt to find a route. This enables us to cull paths that lead somewhere we’ve already been.
pathsFound
When populated the pathsFound will contain a Vector of path Vectors, each path Vector comprising a series of two element lists, the first element describing the route taken and the second the destination arrived at (e.g. [northDir, hall] meaning go north to reach the hall).
steps
The number of steps we have tried so far. We start with 1, being the null step to our starting point.
Methods
findDestinations (cur)
Find all the destinations one step away from cur
findPath (start, target)
no description available
takeOneStep ( )
note which nodes have now been visited
Adv3Lite Library Reference Manual
Generated on 15/03/2023 from adv3Lite version 1.6.1