LavishNav:lnavpathfinder (Object Type)

From Lavish Software Wiki
Revision as of 23:05, 31 March 2006 by Lax (talk | contribs)
Jump to navigation Jump to search

Description

Object Type Vitals
lnavpathfinder
Defined By LavishNav
Inherits none
Reduces To NULL
Variable Object Type
See
Uses Sub-Types no
C/C++ Type LNavPathfinder *

Members

  • string Type: Type of pathfinder (Dijkstra or AStar)
  • float Distance[from region search,to region search]: Distance from one region to another (see the pathfinder types for efficiency notes on distance)
  • ... LastStart: Last from region used
  • ... LastGoal: Last to region used

Methods

  • SelectPath[from region search,to region search,lnavpath object]: Selects a path, if any, from one region to another, appending the given lnavpath object with the result. Note that the first hop of the selected path will be the start region, and there will be no connection
  • Reset: Resets the current pathfinding data. Note that the pathfinder is automatically reset when necessary, you do not generally need to use this method.

Examples

See Also