| Package | be.dauntless.astar.core |
| Class | public class PathRequest |
| Inheritance | PathRequest Object |
| Property | Defined By | ||
|---|---|---|---|
| priority : uint
Returns the priority of this request
| PathRequest | ||
| Method | Defined By | ||
|---|---|---|---|
Creates a new PathRequest
| PathRequest | ||
addAnalyzer(analyzer:Analyzer):void
Add an analyzer to the analyzer chain
| PathRequest | ||
Returns the Analyzer chain for this PathRequest
| PathRequest | ||
Returns the end point of this request
| PathRequest | ||
Returns the map of this request
| PathRequest | ||
Returns the start point of this request
| PathRequest | ||
isTarget(tile:IAstarTile):Boolean
Returns true if the given tile is a target tile. | PathRequest | ||
setEnd(end:IAstarTile):void
Sets the end point of this request
| PathRequest | ||
Sets the map of this request
| PathRequest | ||
setStart(start:IAstarTile):void
Sets the start point of this request
| PathRequest | ||
| priority | property |
priority:uintReturns the priority of this request
public function get priority():uint public function set priority(value:uint):void| PathRequest | () | Constructor |
public function PathRequest(start:IAstarTile, end:IAstarTile, map:IMap, priority:uint = 10)Creates a new PathRequest
Parametersstart:IAstarTile — The start point
| |
end:IAstarTile — The end point
| |
map:IMap — The map to search in
| |
priority:uint (default = 10) — The priority of this request
|
| addAnalyzer | () | method |
public function addAnalyzer(analyzer:Analyzer):voidAdd an analyzer to the analyzer chain
Parameters
analyzer:Analyzer — The analyzer to add to the analyzer chain
|
| getAnalyzers | () | method |
public function getAnalyzers():AnalyzerReturns the Analyzer chain for this PathRequest
ReturnsAnalyzer |
| getEnd | () | method |
public function getEnd():IAstarTileReturns the end point of this request
ReturnsIAstarTile — The end point
|
| getMap | () | method |
| getStart | () | method |
public function getStart():IAstarTileReturns the start point of this request
ReturnsIAstarTile — The start point
|
| isTarget | () | method |
public function isTarget(tile:IAstarTile):BooleanReturns true if the given tile is a target tile. Returns false otherwise. Awill stop searching if it find this tile as the best tile.
Parameters
tile:IAstarTile |
Boolean |
| setEnd | () | method |
public function setEnd(end:IAstarTile):voidSets the end point of this request
Parameters
end:IAstarTile — The end point
|
| setMap | () | method |
| setStart | () | method |
public function setStart(start:IAstarTile):voidSets the start point of this request
Parameters
start:IAstarTile — The start point
|