This is the Smart Route class where we can use the strategy pattern to implement a A* shortest path route. More...
#include <smart_route.h>
Public Member Functions | |
std::vector< std::vector< float > > | GetRoute (const IGraph *graph, std::vector< float > location, std::vector< float > dest) |
This function allows the moving item to get the desired route. In this class, the function will return a route that follows the A* shortest path smart route. More... | |
This is the Smart Route class where we can use the strategy pattern to implement a A* shortest path route.
|
virtual |
This function allows the moving item to get the desired route. In this class, the function will return a route that follows the A* shortest path smart route.
const | IGraph* graph |
std::vector<float> | location |
std::vector<float> | dest |
Implements csci3081::RouteStrategy.