Overseer
|
Is a mathematical "graphmap" for analysing. More...
#include "src/Graph.h"
Public Member Functions | |
Graph () | |
empty constructor | |
Graph (Map *map) | |
object constructor. More... | |
std::vector< ChokePoint > | getChokePoints (size_t region_id_a, size_t region_id_b) const |
Gets the chokepoints been descovered between two adjacent regions. More... | |
std::vector< ChokePoint > | getChokePoints () const |
Gets all the chokepoints on the map. More... | |
ChokePoint | getChokePoint (ChokePointId cp_id) const |
Get the spacific chokepoint from a chokepoint id. More... | |
CPPath & | getPath (ChokePoint cp_a, ChokePoint cp_b) |
Gets a sorted list of chokepoint between chokepoint cp_a and cp_b. More... | |
void | createChokePoints () |
find and create the chokepoint on the map. | |
void | computePaths () |
Calculate all paths between all chokepoints. | |
void | setMap (Map *map) |
set the sc2 map to this class. More... | |
Is a mathematical "graphmap" for analysing.
Overseer::Graph::Graph | ( | Map * | map | ) |
object constructor.
map | The map to make the graph on. |
ChokePoint Overseer::Graph::getChokePoint | ( | ChokePointId | cp_id | ) | const |
Get the spacific chokepoint from a chokepoint id.
cp_id | The id to the wanted chokepoint. |
std::vector< ChokePoint > Overseer::Graph::getChokePoints | ( | size_t | region_id_a, |
size_t | region_id_b | ||
) | const |
Gets the chokepoints been descovered between two adjacent regions.
region_id_a | a region which is adjacent to region_id_b |
region_id_b | a region which is adjacent to region_id_a |
std::vector< ChokePoint > Overseer::Graph::getChokePoints | ( | ) | const |
Gets all the chokepoints on the map.
CPPath & Overseer::Graph::getPath | ( | ChokePoint | cp_a, |
ChokePoint | cp_b | ||
) |
Gets a sorted list of chokepoint between chokepoint cp_a and cp_b.
cp_a | the first chokepoint. |
cp_b | the second chokepoint. |
void Overseer::Graph::setMap | ( | Map * | map | ) |
set the sc2 map to this class.
map | is a pointer to the map. |