Pathfinderclass | pathfind.t[5]

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` | `pathfind.t[123]`

The most recently calculated route

`currentDestination` | `pathfind.t[126]`

The destination of the most recently calculated route.

`nodesVisited` | `pathfind.t[28]`

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` | `pathfind.t[14]`

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` | `pathfind.t[20]`

The number of steps we have tried so far. We start with 1, being the null step to our starting point.

Methods

`findDestinations (cur)` | `pathfind.t[117]`

Find all the destinations one step away from cur

`findPath (start, target)` | `pathfind.t[31]`

no description available

`takeOneStep ( )` | `pathfind.t[96]`

note which nodes have now been visited

Adv3Lite Library Reference Manual
Generated on 01/03/2024 from adv3Lite version 1.6.2