diff options
author | Yuri Roubinsky <chaosus89@gmail.com> | 2020-03-14 10:22:34 +0300 |
---|---|---|
committer | Yuri Roubinsky <chaosus89@gmail.com> | 2020-03-14 18:01:06 +0300 |
commit | bad77bcb529b83daabb29b5aa57776ec18ee5a0e (patch) | |
tree | c0d026430f78d82216a6d5331efcb5cf340a9397 /doc | |
parent | f65781fe7fa9a421a0ed39e8006f5e5247050758 (diff) | |
download | redot-engine-bad77bcb529b83daabb29b5aa57776ec18ee5a0e.tar.gz |
Implements estimate/compute_cost for AStar2D
Diffstat (limited to 'doc')
-rw-r--r-- | doc/classes/AStar2D.xml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/doc/classes/AStar2D.xml b/doc/classes/AStar2D.xml index 2639f62552..16fa05041e 100644 --- a/doc/classes/AStar2D.xml +++ b/doc/classes/AStar2D.xml @@ -9,6 +9,30 @@ <tutorials> </tutorials> <methods> + <method name="_compute_cost" qualifiers="virtual"> + <return type="float"> + </return> + <argument index="0" name="from_id" type="int"> + </argument> + <argument index="1" name="to_id" type="int"> + </argument> + <description> + Called when computing the cost between two connected points. + Note that this function is hidden in the default [code]AStar2D[/code] class. + </description> + </method> + <method name="_estimate_cost" qualifiers="virtual"> + <return type="float"> + </return> + <argument index="0" name="from_id" type="int"> + </argument> + <argument index="1" name="to_id" type="int"> + </argument> + <description> + Called when estimating the cost between a point and the path's ending point. + Note that this function is hidden in the default [code]AStar2D[/code] class. + </description> + </method> <method name="add_point"> <return type="void"> </return> |