| Package | be.dauntless.astar.basic2d.analyzers |
| Class | public class OccupationAnalyzer |
| Inheritance | OccupationAnalyzer Analyzer Object |
| Method | Defined By | ||
|---|---|---|---|
OccupationAnalyzer(max:Number, weight:Number)
Creates a new OccupationAnalyzer
| OccupationAnalyzer | ||
[override] | OccupationAnalyzer | ||
![]() |
Removes an analyzer from the chain. | Analyzer | |
setMax(max:Number):void
Sets the maximum occupation
| OccupationAnalyzer | ||
![]() | 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 | ||
![]() | subAnalyze(mainTile:DataTile, allNeighbours:Vector.<IAstarTile>, neighboursLeft:Vector.<IAstarTile>, req:PathRequest):Vector.<IAstarTile>
Manages the propper chaining of the subanalyzers. | Analyzer | |
![]() |
Analyzes if a single tile is valid. | Analyzer | |
| Method | Defined By | ||
|---|---|---|---|
analyze(mainTile:IAstarTile, allNeighbours:Vector.<IAstarTile>, neighboursLeft:Vector.<IAstarTile>, req:PathRequest):Vector.<IAstarTile> [override] | OccupationAnalyzer | ||
![]() | Analyzer | ||
| OccupationAnalyzer | () | Constructor |
public function OccupationAnalyzer(max:Number, weight:Number)Creates a new OccupationAnalyzer
Parametersmax:Number | |
weight:Number |
| 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 |
Vector.<IAstarTile> |
| analyzeTile | () | method |
override public function analyzeTile(tile:IAstarTile, req:PathRequest):BooleanParameters
tile:IAstarTile | |
req:PathRequest |
Boolean |
| setMax | () | method |
public function setMax(max:Number):voidSets the maximum occupation
Parameters
max:Number — The maximum occupation
|
| setWeight | () | method |
public function setWeight(weight:Number):voidSets 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
|