#include "mapAbstraction.h"
#include "constants.h"
Include dependency graph for mapAbstraction.cpp:
Functions | |
graph * | getMapGraph (Map *m) |
getMapGraph(map) | |
void | addMapEdges (Map *m, graph *g, int x, int y) |
Variables | |
const int | gEdgeProb = 100 |
addMapEdges(map, graph, x, y) | |
const int | gStraightEdgeProb = 100 |
|
|
|
getMapGraph(map) Given a map, this function uses the external map interfaces to turn it into a graph, and sets the appropriate node numbers for that map. This function should not be called multiple times on the same map, because the original graph map lose it's association with the map. |
|
addMapEdges(map, graph, x, y) This is a helper function for getMapGraph that does the work of adding the graph edges. Each edge is only added once, so while the graph has directional edges, we treat them as being bidirectional. |
|
|