This is another widely-used technique for world representation based on points located throughout the valid area of navigation, whether manually placed or automated via scripting. We'll be using manually-placed points connected automatically via scripting.
Just like the previous representation, it's important to have several things in order before continuing:
Having the
Edge
class prepended to theGraph
class in the same fileDefining the
GetEdges
function in theGraph
classHaving the
Vertex
class