Packageorg.wak.baseoneonline.flash.astar
Classpublic class AStar



Public Properties
 PropertyDefined by
  closed : Array
AStar
  open : Array
AStar
  visited : Array
AStar
Public Methods
 MethodDefined by
  
AStar
  
solve():Array
FIND PATH Find the path!
AStar
Property detail
closedproperty
public var closed:Array
openproperty 
public var open:Array
visitedproperty 
public var visited:Array
Constructor detail
AStar()constructor
public function AStar(map:IAStarSearchable, start:IntPoint, goal:IntPoint)

Parameters
map:IAStarSearchable — map The map to be searched, will not be modified
 
start:IntPoint — Guess what? The starting position!
 
goal:IntPoint — This is where we want to end up.
Method detail
solve()method
public function solve():Array

FIND PATH Find the path!

Returns
Array — An array of IntPoints describing the resulting path