Phaser.Plugin.AStar.AStarPath

new AStarPath(nodes, start, goal)

AStarPath is an object that stores a searchPath result.

Parameters:

Name

Type

Description

nodes

array

An array of nodes coordinates sorted backward from goal to start point.

start

Phaser.Plugin.AStarNode

The start AStarNode used for the searchPath.

goal

Phaser.Plugin.AStarNode

The goal AStarNode used for the searchPath.

Source - out/plugins/AStar/AStar.js, line 547

Members

goal:Phaser.Plugin.Astar.AStarNode

Reference to the goal point used by findPath.

Source - out/plugins/AStar/AStar.js, line 562

nodes:array

Array of AstarNodes x, y coordiantes that are the path solution from goal to start point.

Source - out/plugins/AStar/AStar.js, line 552

start:Phaser.Plugin.Astar.AStarNode

Reference to the start point used by findPath.

Source - out/plugins/AStar/AStar.js, line 557

visited:array

Array of AStarNodes that the findPath algorythm has visited. Used for debug only.

Source - out/plugins/AStar/AStar.js, line 567