5 #include "TiledGraphPathfinderResult.h"
6 #include "AStarPriorityQueue.h"
7 #include "AStarState.h"
8 #include "TiledGraphEdge.h"
9 #include "VectorMath.h"
12 #include <unordered_map>
28 const float parameterisedPointOnEdgeA,
31 const float parameterisedPointOnEdgeB,
35 typedef std::unordered_map<TiledGraphEdgeId, int, TiledGraphEdgeIdHash> TGraphEdgeIdToAStarState;
39 const float parameterisedPointOnEdgeA,
41 const float parameterisedPointOnEdgeB,
46 const float parameterisedPointOnEdgeA,
48 const float parameterisedPointOnEdgeB)
const;
50 void OpenEdge(
const TiledGraphEdgeId& graphEdgeId,
int priorStateIndex,
const float costToPrior,
const float costToTraverseEdge,
const float h);
55 float Distance(
const dv3& a,
const dv3& b)
const;
56 std::vector<TiledGraphEdgeId> ReconstructPathEdges()
const;
64 TGraphEdgeIdToAStarState m_graphEdgeIdToState;
65 std::vector<AStarState> m_stateVector;
67 std::vector<TiledGraphEdgeId> m_edgeIdsScratch;
70 float m_startParameterisedPointOnEdge;
72 float m_goalParameterisedPointOnEdge;