Packagebe.dauntless.astar.basic2d.analyzers
Classpublic class WalkableAnalyzer
InheritanceWalkableAnalyzer Inheritance Analyzer Inheritance Object

The WalkableAnalyzer eliminates tiles that aren't walkable. If ignoreEnd is true, the end node (PathRequest.isTarget(tile)) doesnt have to be walkable



Protected Properties
 PropertyDefined By
 Inherited_subAnalyzer : Analyzer
Analyzer
Public Methods
 MethodDefined By
  
WalkableAnalyzer(ignoreEnd:Boolean = false)
WalkableAnalyzer
  
[override]
WalkableAnalyzer
 Inherited
Removes an analyzer from the chain.
Analyzer
 Inherited
setSubAnalyzer(subAnalyzer:Analyzer):void
Chains the given subAnalyzer to this analyzer
Analyzer
 Inherited
subAnalyze(mainTile:DataTile, allNeighbours:Vector.<IAstarTile>, neighboursLeft:Vector.<IAstarTile>, req:PathRequest):Vector.<IAstarTile>
Manages the propper chaining of the subanalyzers.
Analyzer
 Inherited
subAnalyzeTile(mainTile:IAstarTile, req:PathRequest):Boolean
Analyzes if a single tile is valid.
Analyzer
Protected Methods
 MethodDefined By
  
analyze(mainTile:IAstarTile, allNeighbours:Vector.<IAstarTile>, neighboursLeft:Vector.<IAstarTile>, req:PathRequest):Vector.<IAstarTile>
[override]
WalkableAnalyzer
 Inherited
Analyzer
Constructor Detail
WalkableAnalyzer()Constructor
public function WalkableAnalyzer(ignoreEnd:Boolean = false)



Parameters
ignoreEnd:Boolean (default = false)
Method Detail
analyze()method
override protected function analyze(mainTile:IAstarTile, allNeighbours:Vector.<IAstarTile>, neighboursLeft:Vector.<IAstarTile>, req:PathRequest):Vector.<IAstarTile>

Parameters

mainTile:IAstarTile
 
allNeighbours:Vector.<IAstarTile>
 
neighboursLeft:Vector.<IAstarTile>
 
req:PathRequest

Returns
Vector.<IAstarTile>
analyzeTile()method 
override public function analyzeTile(tile:IAstarTile, req:PathRequest):Boolean

Parameters

tile:IAstarTile
 
req:PathRequest

Returns
Boolean