added interface for walkers
some new helper methods added interpolater for paths
This commit is contained in:
@@ -12,13 +12,14 @@
|
||||
|
||||
#include "GridWalkState.h"
|
||||
#include "GridWalkHelper.h"
|
||||
#include "GridWalk.h"
|
||||
|
||||
/**
|
||||
* keeps something like an "average position within the last X steps"
|
||||
* and tries to move away from this point as fast as possible
|
||||
*
|
||||
*/
|
||||
template <typename T> class GridWalkPushForward {
|
||||
template <typename T> class GridWalkPushForward : public GridWalk<T> {
|
||||
|
||||
friend class GridWalkHelper;
|
||||
|
||||
@@ -42,7 +43,7 @@ public:
|
||||
;
|
||||
}
|
||||
|
||||
GridWalkState<T> getDestination(Grid<T>& grid, const GridWalkState<T> start, const float distance_m) {
|
||||
GridWalkState<T> getDestination(Grid<T>& grid, const GridWalkState<T> start, const float distance_m) override {
|
||||
|
||||
return GridWalkHelper::retryOrInvert(*this, 2, grid, start, distance_m);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user