# class FlxTypedPathfinderData<Tilemap>

#### package flixel.path

#### import flixel.path.FlxPathfinder

The data used by Pathfinders to "solve" a single pathfinding request. A new Instance gets created whenever you request pathfinder computations. Extend this class if your pathfinding needs require special iterative data.

5.0.0

.### Constructor

`new(map:Tilemap, startIndex:Int, endIndex:Int)`

Mainly a helper class for FlxTilemapPathPolicy. Used to store data while the paths are computed, but also useful for analyzing the data once it's done somputing.

Parameters:

`mapSize` | The total number of tiles in the map |
---|---|

`startIndex` | The start index of the path |

`endIndex` | The end index of the path |

### Variables

`read onlyexcluded:Array<Int>`

Every index has the tileIndex that reached it first while computing the path

### Methods

`inlinegetPathIndices():Null<Array<Int>>`

If the desired start to end path was successful, this returns the tile indices used to get there the fastest. If unsuccessful, null is returned.

`getPathIndicesTo(index:Int):Null<Array<Int>>`

If possible, this returns the tile indices used to get there the fastest. If impossible, null is returned.