18 #ifndef TAXIPATHGRAPH_HPP
19 #define TAXIPATHGRAPH_HPP
23 #include <boost/graph/adjacency_list.hpp>
43 typedef boost::adjacency_list<boost::listS, boost::vecS, boost::directedS, boost::property<boost::vertex_index_t, uint32>, boost::property<boost::edge_weight_t, EdgeCost>>
Graph;
44 typedef boost::property_map<Graph, boost::edge_weight_t>::type
WeightMap;
47 typedef std::pair<uint32, uint32>
edge;
53 vertex_descriptor GetVertexIDFromNodeID(
TaxiNodesEntry const* node);
54 uint32 GetNodeIDFromVertexID(vertex_descriptor vertexID);
55 vertex_descriptor CreateVertexFromFromNodeInfoIfNeeded(
TaxiNodesEntry const* node);
56 std::size_t GetVertexCount();
65 #define sTaxiPathGraph TaxiPathGraph::Instance()
~TaxiPathGraph()
Definition: TaxiPathGraph.h:50
std::pair< uint32, uint32 > edge
Definition: TaxiPathGraph.h:47
Definition: TaxiPathGraph.h:37
Definition: TaxiPathGraph.h:28
boost::property_map< Graph, boost::edge_weight_t >::type WeightMap
Definition: TaxiPathGraph.h:44
TaxiPathGraph()
Definition: TaxiPathGraph.h:49
std::vector< TaxiNodesEntry const * > m_vertices
Definition: TaxiPathGraph.h:59
Graph::vertex_descriptor vertex_descriptor
Definition: TaxiPathGraph.h:45
Vector2int16 & operator=(const Any &a)
uint32 Distance
Definition: TaxiPathGraph.h:40
uint32_t uint32
Definition: Define.h:150
static void Initialize(PCASC_SALSA20 pState, LPBYTE pbKey, DWORD cbKeyLength, LPBYTE pbVector)
Definition: CascDecrypt.cpp:81
TaxiNodesEntry const * To
Definition: TaxiPathGraph.h:39
#define TC_GAME_API
Definition: Define.h:134
Definition: DB2Structure.h:1324
Graph::edge_descriptor edge_descriptor
Definition: TaxiPathGraph.h:46
boost::adjacency_list< boost::listS, boost::vecS, boost::directedS, boost::property< boost::vertex_index_t, uint32 >, boost::property< boost::edge_weight_t, EdgeCost > > Graph
Definition: TaxiPathGraph.h:43
Graph m_graph
Definition: TaxiPathGraph.h:58