Latest version of the library - Modifications:
- Faster A* searching, due to the inclusion of a heap for the open list.
- Integration of the restricted A*8 search.
- Added A*4 searching.
- Added Flood fill 4 direction searching.
The last one is slower than the others, and you might wonder why I included it. Because of the way it works, it allows you to search from the same source point to multiple targets with the second and later searches virtually free.
Also, I have added a small piece of conditional compilation in this code that allows me to switch in a fast array item swap command within my Array TPC DLL. The gain doesn't seem much (around 4-8%) but on a large map that can be quite a saving.
With the introduction of this, and the heap algorithm, the fastest case of A* has been slightly slowed, but the normal case has been made slightly faster and the worst case has been made massively faster.
The introduction of the heap has also made the A*4 run at a usable speed, so I've also included that too