Hey all,
I've created a subclass of AStar2D and tried to override the computecost() and estimatecost() functions. I'm trying to make it so A* sees the distance between any two connected nodes as 1. That way, the shortest path is determined only by the number of connections.
Here's my code: https://pastebin.com/dyVnagqX
It seems to be ignoring the functions I've written. Firstly, it fails to calculate the shortest path, and secondly, it doesn't print "blamo" to the console when computing distance.
Anybody know what I'm doing wrong?
Thanks!