diff options
author | RĂ©mi Verschelde <rverschelde@gmail.com> | 2019-04-08 12:19:51 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-08 12:19:51 +0200 |
commit | 3cf2bdbd8416ffd39c105bf64fc3544424d0a2cf (patch) | |
tree | a3cb9be5942dbbb0ec70cca378c5a007401c6450 /doc/classes | |
parent | d65cbddc8defb0be878c5247bc61202796475ba5 (diff) | |
parent | cc71fb2308b04f6fab67490e99d0fb0ea1251031 (diff) |
Merge pull request #27506 from Chaosus/astar
Added functions to AStar for disable/enable points to effectivly create obstacles
Diffstat (limited to 'doc/classes')
-rw-r--r-- | doc/classes/AStar.xml | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/classes/AStar.xml b/doc/classes/AStar.xml index 5a62c69a67..3e478467ff 100644 --- a/doc/classes/AStar.xml +++ b/doc/classes/AStar.xml @@ -226,6 +226,15 @@ Returns whether a point associated with the given id exists. </description> </method> + <method name="is_point_disabled" qualifiers="const"> + <return type="bool"> + </return> + <argument index="0" name="id" type="int"> + </argument> + <description> + Returns whether a point is disabled or not for pathfinding. By default, all points are enabled. + </description> + </method> <method name="remove_point"> <return type="void"> </return> @@ -235,6 +244,17 @@ Removes the point associated with the given id from the points pool. </description> </method> + <method name="set_point_disabled"> + <return type="void"> + </return> + <argument index="0" name="id" type="int"> + </argument> + <argument index="1" name="disabled" type="bool" default="true"> + </argument> + <description> + Disables or enables the specified point for pathfinding. Useful for making a temporary obstacle. + </description> + </method> <method name="set_point_position"> <return type="void"> </return> |