Packagebe.dauntless.astar.core
Classpublic class AstarPath
InheritanceAstarPath Inheritance Object

The AstarPath defines the path that is found by the Astar class.



Public Properties
 PropertyDefined By
  cost : Number
[read-only] Gets the cost of this AstarPath
AstarPath
  path : Vector.<IAstarTile>
[read-only] Returns a list representation of the path
AstarPath
Public Methods
 MethodDefined By
  
AstarPath(cost:Number = 0, path:Vector.<IAstarTile> = null)
Creates a new AstarPath instance.
AstarPath
  
toString():String
Returns a string representation of the path
AstarPath
Property Detail
costproperty
cost:Number  [read-only]

Gets the cost of this AstarPath


Implementation
    public function get cost():Number
pathproperty 
path:Vector.<IAstarTile>  [read-only]

Returns a list representation of the path


Implementation
    public function get path():Vector.<IAstarTile>
Constructor Detail
AstarPath()Constructor
public function AstarPath(cost:Number = 0, path:Vector.<IAstarTile> = null)

Creates a new AstarPath instance.

Parameters
cost:Number (default = 0) — The total cost of this path
 
path:Vector.<IAstarTile> (default = null) — The list of IAstarTiles making up the path
Method Detail
toString()method
public function toString():String

Returns a string representation of the path

Returns
String — A string representation of the path