VBPathfinding
1.0.0
用于 VB.NET 的 A* 寻路库
包括曼哈顿、欧几里德、八分位数和切比雪夫启发式,(默认为曼哈顿)当前不支持对角线寻路
基本用法:
Dim gridTest As Grid = New Grid(10, 10)
gridTest.SetWalkable(0, 1, Fale)
Dim finder As New AStarFinder()
Dim path = finder.FindPath(0, 0, 5, 5, gridTest)
For i = 0 To path.Count - 1
Dim list As List(Of Integer) = path.ElementAt(i)
Debug.WriteLine("X" & i & ": " & list.ElementAt(0))
Debug.WriteLine("Y" & i & ": " & list.ElementAt(1))
Next