request for code: simple A*

BlitzMax Forums/BlitzMax Programming/request for code: simple A*

Actually I think we should expand this pathfinder with all kinda extra functionality, without loosing its neutrality of course.

Apart from the walk/wall and the said ramping there could also be floors (used in cobination with ramping), meaning that from floor a you can't directly move to floor b, only via a ramp.

Also, there could be walkable tiles with priorities, high priority is to choose over low priority.

What about legal random errors in a path to simulate human errors? (otherwise you get straight marching of units). These errors could be simulated by analyzing the found path: for each step in the route check the surrounding tiles, if they are walkable then the route could add this to the route.

What about another route[] to store enviromental properties for each step? Like how many rings of directly walkable tiles are around the position of the step?

etc. all these things keep the thing neutral but could greatly enhance the functionality!