removed gridSize from the template arguments
- not needed and code much cleaner some minor changes new test-cases
This commit is contained in:
@@ -41,7 +41,7 @@ private:
|
||||
public:
|
||||
|
||||
/** ctor with the target you want to reach */
|
||||
template <int gridSize_cm, typename Access> GridWalkLightAtTheEndOfTheTunnel(Grid<gridSize_cm, T>& grid, const Access& acc, const T& target) {
|
||||
template <typename Access> GridWalkLightAtTheEndOfTheTunnel(Grid<T>& grid, const Access& acc, const T& target) {
|
||||
|
||||
// build all shortest path to reach th target
|
||||
dijkstra.build(target, target, acc);
|
||||
@@ -60,7 +60,7 @@ public:
|
||||
|
||||
}
|
||||
|
||||
template <int gridSize_cm> GridWalkState<T> getDestination(Grid<gridSize_cm, T>& grid, GridWalkState<T> start, float distance_m) {
|
||||
GridWalkState<T> getDestination(Grid<T>& grid, GridWalkState<T> start, float distance_m) {
|
||||
|
||||
int retries = 2;
|
||||
GridWalkState<T> res;
|
||||
@@ -84,7 +84,7 @@ public:
|
||||
|
||||
private:
|
||||
|
||||
template <int gridSize_cm> GridWalkState<T> walk(Grid<gridSize_cm, T>& grid, GridWalkState<T> cur, float distRest_m) {
|
||||
GridWalkState<T> walk(Grid<T>& grid, GridWalkState<T> cur, float distRest_m) {
|
||||
|
||||
drawer.reset();;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user