AlphaFramework API  1.0.3
Classes | Public Member Functions | List of all members
AlphaFramework.World.Paths.SimplePathfinder Class Reference

A simple A* pathfinder. More...

Inheritance diagram for AlphaFramework.World.Paths.SimplePathfinder:
AlphaFramework.World.Paths.IPathfinder< Vector2 >

Public Member Functions

 SimplePathfinder (bool[,] obstructionMap)
 Initializes a new pathfinder. More...
 
IEnumerable< Vector2 > FindPath (Vector2 start, Vector2 target)
 
- Public Member Functions inherited from AlphaFramework.World.Paths.IPathfinder< Vector2 >
IEnumerable< TCoordinates > FindPath (TCoordinates start, TCoordinates target)
 Calculates a path from source to target coordinates. More...
 

Detailed Description

A simple A* pathfinder.

Constructor & Destructor Documentation

◆ SimplePathfinder()

AlphaFramework.World.Paths.SimplePathfinder.SimplePathfinder ( bool  obstructionMap[,])
inline

Initializes a new pathfinder.

Parameters
obstructionMapA 2D map of obstructed (untraversable) fields.

The documentation for this class was generated from the following file: