Original Post
I''m not exactly sure where I should be posting this one, so I''m putting it here...
I have a basic 2D map which, in order to speed up my path-finding algorithm, I''m dividing up into larger sections (groups of tiles) using a binary tree (each node of the tree is either blocked (i.e has something(s) in it) or empty). Each node of the tree contains the co-ordinates of the center of that node (the center is assumed to be the top left of the specified) map tile (besides the pointers to child nodes). The plan is the instead of planning a route on a square-by-square basis the AI will consider it on a node-by-node basis.
The problem I have is this...
How do I find all the adjacent nodes (an adjacent node in this case is one where the EDGES touch if only the corners touch then they are not adjacent) quickly (i.e. using the tree and not visiting every node)