diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2017-04-03 13:52:59 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-03 13:52:59 +0200 |
commit | 5b09dde3fee4a314183b742ee77913cb7ffd611f (patch) | |
tree | c92400e4ca7151c90ea099864ecae4d231573bc8 /core/math/a_star.h | |
parent | 9f85befbfd5d4b5494570edab97ef0b6bd852bcd (diff) | |
parent | b5414024179635f19a16d206d1f016e349dc3d66 (diff) |
Merge pull request #8146 from supagu/astar
Added ability to change A-star cost function
Diffstat (limited to 'core/math/a_star.h')
-rw-r--r-- | core/math/a_star.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/core/math/a_star.h b/core/math/a_star.h index 2ac855737c..43c9c4457a 100644 --- a/core/math/a_star.h +++ b/core/math/a_star.h @@ -93,6 +93,9 @@ class AStar : public Reference { protected: static void _bind_methods(); + virtual float _estimate_cost(int p_from_id, int p_to_id); + virtual float _compute_cost(int p_from_id, int p_to_id); + public: int get_available_point_id() const; |