Packagebe.dauntless.astar.basic2d.analyzers
Classpublic class OccupationAnalyzer
InheritanceOccupationAnalyzer Inheritance Analyzer Inheritance Object

The OccupationAnalyzer eliminates tiles on which there isn't enough room to walk upon



Protected Properties
 PropertyDefined By
 Inherited_subAnalyzer : Analyzer
Analyzer
Public Methods
 MethodDefined By
  
OccupationAnalyzer(max:Number, weight:Number)
Creates a new OccupationAnalyzer
OccupationAnalyzer
  
[override]
OccupationAnalyzer
 Inherited
Removes an analyzer from the chain.
Analyzer
  
setMax(max:Number):void
Sets the maximum occupation
OccupationAnalyzer
 Inherited
setSubAnalyzer(subAnalyzer:Analyzer):void
Chains the given subAnalyzer to this analyzer
Analyzer
  
setWeight(weight:Number):void
Sets the height of the object for which the path is searched
OccupationAnalyzer
 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]
OccupationAnalyzer
 Inherited
Analyzer
Constructor Detail
OccupationAnalyzer()Constructor
public function OccupationAnalyzer(max:Number, weight:Number)

Creates a new OccupationAnalyzer

Parameters
max:Number
 
weight:Number
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
setMax()method 
public function setMax(max:Number):void

Sets the maximum occupation

Parameters

max:Number — The maximum occupation

setWeight()method 
public function setWeight(weight:Number):void

Sets the height of the object for which the path is searched

Parameters

weight:Number — The weight of the object for which the path is searched