Packagebe.dauntless.astar.basic2d.analyzers
Classpublic class SmartClippingAnalyzer
InheritanceSmartClippingAnalyzer Inheritance Analyzer Inheritance Object

The SmartClippingAnalyzer allows the path to go diagonal, but only if the adjecent horizontal and vertical tiles are free. If the path would go 'right + up', both 'right' and 'up' should be walkable



Protected Properties
 PropertyDefined By
 Inherited_subAnalyzer : Analyzer
Analyzer
Public Methods
 MethodDefined By
  
SmartClippingAnalyzer
 Inherited
analyzeTile(mainTile:IAstarTile, req:PathRequest):Boolean
Used to validate a single tile.
Analyzer
 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]
SmartClippingAnalyzer
 Inherited
Analyzer
Constructor Detail
SmartClippingAnalyzer()Constructor
public function SmartClippingAnalyzer()



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>