HOG2
Functions | Variables
MapAbstraction.cpp File Reference
#include "MapAbstraction.h"
Include dependency graph for MapAbstraction.cpp:

Go to the source code of this file.

Functions

GraphGetMapGraph (Map *m)
 GetMapGraph(map) More...
 
void AddMapEdges (Map *m, Graph *g, int x, int y)
 

Variables

static const int gEdgeProb = 100
 AddMapEdges(map, Graph, x, y) More...
 
static const int gStraightEdgeProb = 100
 

Function Documentation

◆ AddMapEdges()

void AddMapEdges ( Map m,
Graph g,
int  x,
int  y 
)

◆ GetMapGraph()

Graph* GetMapGraph ( Map m)

Variable Documentation

◆ gEdgeProb

const int gEdgeProb = 100
static

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.

Definition at line 427 of file MapAbstraction.cpp.

Referenced by AddMapEdges().

◆ gStraightEdgeProb

const int gStraightEdgeProb = 100
static

Definition at line 428 of file MapAbstraction.cpp.

Referenced by AddMapEdges().