diff options
Diffstat (limited to 'core/math/a_star_grid_2d.h')
-rw-r--r-- | core/math/a_star_grid_2d.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/core/math/a_star_grid_2d.h b/core/math/a_star_grid_2d.h index 9746564e4f..3034de93d7 100644 --- a/core/math/a_star_grid_2d.h +++ b/core/math/a_star_grid_2d.h @@ -73,6 +73,7 @@ private: CellShape cell_shape = CELL_SHAPE_SQUARE; bool jumping_enabled = false; + int64_t max_traversals = 0; DiagonalMode diagonal_mode = DIAGONAL_MODE_ALWAYS; Heuristic default_compute_heuristic = HEURISTIC_EUCLIDEAN; Heuristic default_estimate_heuristic = HEURISTIC_EUCLIDEAN; @@ -204,6 +205,9 @@ public: void set_jumping_enabled(bool p_enabled); bool is_jumping_enabled() const; + void set_max_traversals(int64_t p_max_traversals); + int64_t get_max_traversals() const; + void set_diagonal_mode(DiagonalMode p_diagonal_mode); DiagonalMode get_diagonal_mode() const; |