| Package | org.ffilmation.engine.interfaces |
| Interface | public interface fEnginePathfindCriteria |
| Method | Defined by | ||
|---|---|---|---|
|
getAccessibleFrom(cell:fCell):Array
Returns a weighed list of a cells's accessible neighbours.
| fEnginePathfindCriteria | ||
|
This method return the destiny point for this search
| fEnginePathfindCriteria | ||
|
getDestinyCell():fCell
This method return the destiny cell for this search
| fEnginePathfindCriteria | ||
|
getHeuristic(cell:fCell):Number
Returns a n heuristic value for any cell in the scene.
| fEnginePathfindCriteria | ||
|
This method return the origin point for this search
| fEnginePathfindCriteria | ||
|
getOriginCell():fCell
This method return the origin cell for this search
| fEnginePathfindCriteria | ||
| getAccessibleFrom | () | method |
public function getAccessibleFrom(cell:fCell):ArrayReturns a weighed list of a cells's accessible neighbours. This method updates each cell in the returned list, setting its "cost" temporal property with the cost associated to move from the input cell into that cell.
Parameterscell:fCell |
Array — An array of fCells.
|
| getDestiny | () | method |
public function getDestiny():fPoint3dThis method return the destiny point for this search
ReturnsfPoint3d —
The destiny point
|
| getDestinyCell | () | method |
public function getDestinyCell():fCellThis method return the destiny cell for this search
ReturnsfCell — The destiny cell
|
| getHeuristic | () | method |
public function getHeuristic(cell:fCell):NumberReturns a n heuristic value for any cell in the scene. The engine works with cell precision: any point inside the same cell as the destination point has to be considered the destination point.
Parameterscell:fCell — The cell for which we must calculate its heuristic
|
Number — The heuristic score for this cell. A value of 0 indicates that we reached our objective
|
| getOrigin | () | method |
public function getOrigin():fPoint3dThis method return the origin point for this search
ReturnsfPoint3d —
The origin point
|
| getOriginCell | () | method |
public function getOriginCell():fCellThis method return the origin cell for this search
ReturnsfCell — The origin cell
|