Glenn Saunders Wrote:I suspect Johns code makes a call to DirectX to provide that function so I doubt he could do anything with it really.
Glenn
Actually Glenn, I respectfully disagree. Most of the complexity will be in the application code where the pathfinding/reachability is done on application specific data (ie map, unit class, movement costs etc). Then, once complete, direct-X will be called to simply highlight the selected area of the screen which is a very quick operation.
I expect John's path-finding algorthm per se is pretty well thought out. It's the implementation, and the amenibility of that implementation to compiler optimization that can often be tuned. I'll bet there is some tuning leeway there....and it would be a great time saver.
Thanks,
Fury