Class WaypointPath

Public

Path which passes through a list of user defined waypoints.

This is not a "real" path in the sense that it cannot be sent to AstarPath.StartPath, instead it is started by calling the StartPath function. This script will then calculate several paths between the waypoints and when all those paths have been calculated, the callback passed to the constructor will be called.

Public Methods

HasError ()

Returns if the path was calculated without errors.

Public
OnWaypointPathComplete (p)
Public
StartPath (config=null)

Calculate all paths.

Public
WaypointPath (waypoints, callback)

Create a new WaypointPath which will calculate a path through all waypoints.

Public

Public Variables

nodePath

Combined node path.

Public
vectorPath

Combined vector path.

Public

Private/Protected Members

callback
Private
Completed ()

Called when all paths have been calculated or returned an error.

Private
completedPaths
Private
OnPathComplete (p)

Called when each internal path is returned.

Private
paths
Private
waypoints
Private