| Package | be.dauntless.astar.basic2d.analyzers |
| Class | public class HeightAnalyzer |
| Inheritance | HeightAnalyzer Analyzer Object |
| Method | Defined By | ||
|---|---|---|---|
HeightAnalyzer(minHeight:Number, maxHeight:Number, minDiff:Number, maxDiff:Number)
Creates a new HeightAnalyzer
| HeightAnalyzer | ||
![]() |
Used to validate a single tile. | Analyzer | |
getMaxDifference():Number
Returns the maximum difference
| HeightAnalyzer | ||
getMaxHeight():Number
Returns the maximum height
| HeightAnalyzer | ||
getMinDifference():Number
Returns the minimum difference
| HeightAnalyzer | ||
getMinHeight():Number
Returns the minimum height
| HeightAnalyzer | ||
![]() |
Removes an analyzer from the chain. | Analyzer | |
setMaxDifference(maxDifference:Number):void
Sets the maximum difference
| HeightAnalyzer | ||
setMaxHeight(maxHeight:Number):void
Sets the maximum height
| HeightAnalyzer | ||
setMinDifference(minDifference:Number):void
Sets the minimum difference
| HeightAnalyzer | ||
setMinHeight(minHeight:Number):void
Sets the minimum height
| HeightAnalyzer | ||
![]() | setSubAnalyzer(subAnalyzer:Analyzer):void
Chains the given subAnalyzer to this analyzer
| Analyzer | |
![]() | 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] | HeightAnalyzer | ||
![]() | Analyzer | ||
| HeightAnalyzer | () | Constructor |
public function HeightAnalyzer(minHeight:Number, maxHeight:Number, minDiff:Number, maxDiff:Number)Creates a new HeightAnalyzer
ParametersminHeight:Number — The maximum height difference
| |
maxHeight:Number — The minimum height difference
| |
minDiff:Number — The minimum height
| |
maxDiff:Number — The maximum height
|
| 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> |
| getMaxDifference | () | method |
public function getMaxDifference():NumberReturns the maximum difference
ReturnsNumber — The maximum difference
|
| getMaxHeight | () | method |
public function getMaxHeight():NumberReturns the maximum height
ReturnsNumber — The maximum height
|
| getMinDifference | () | method |
public function getMinDifference():NumberReturns the minimum difference
ReturnsNumber — The minimum difference
|
| getMinHeight | () | method |
public function getMinHeight():NumberReturns the minimum height
ReturnsNumber — The minimum height
|
| setMaxDifference | () | method |
public function setMaxDifference(maxDifference:Number):voidSets the maximum difference
Parameters
maxDifference:Number — The maximum difference
|
| setMaxHeight | () | method |
public function setMaxHeight(maxHeight:Number):voidSets the maximum height
Parameters
maxHeight:Number — The maximum height
|
| setMinDifference | () | method |
public function setMinDifference(minDifference:Number):voidSets the minimum difference
Parameters
minDifference:Number — The minimum difference
|
| setMinHeight | () | method |
public function setMinHeight(minHeight:Number):voidSets the minimum height
Parameters
minHeight:Number — The minimum height
|