LambdaSix / RenderLike

C# MonoGame based console emulator in the spirit of libtcod
MIT License
1 stars 0 forks source link

A* Pathing functions #7

Open LambdaSix opened 8 years ago

LambdaSix commented 8 years ago

Implement a pathing API.

Since RenderLike does not provide any map data structure, this will work primarily with callbacks, the user provides a callback which supplies tile cost. Something with a signature a little like:

public IEnumerable<vector2> ComputePath(vector2 start, vector2 end, float diagonalCost, Func<vector2,float> costFunc)