class_astar.rst 9.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125
  1. .. Generated automatically by doc/tools/makerst.py in Godot's source tree.
  2. .. DO NOT EDIT THIS FILE, but the doc/base/classes.xml source instead.
  3. .. _class_AStar:
  4. AStar
  5. =====
  6. **Inherits:** :ref:`Reference<class_reference>` **<** :ref:`Object<class_object>`
  7. **Category:** Core
  8. Brief Description
  9. -----------------
  10. Member Functions
  11. ----------------
  12. +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  13. | void | :ref:`_compute_cost<class_AStar__compute_cost>` **(** :ref:`int<class_int>` from_id, :ref:`int<class_int>` to_id **)** virtual |
  14. +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  15. | void | :ref:`_estimate_cost<class_AStar__estimate_cost>` **(** :ref:`int<class_int>` from_id, :ref:`int<class_int>` to_id **)** virtual |
  16. +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  17. | void | :ref:`add_point<class_AStar_add_point>` **(** :ref:`int<class_int>` id, :ref:`Vector3<class_vector3>` pos, :ref:`float<class_float>` weight_scale=1 **)** |
  18. +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  19. | :ref:`bool<class_bool>` | :ref:`are_points_connected<class_AStar_are_points_connected>` **(** :ref:`int<class_int>` id, :ref:`int<class_int>` to_id **)** const |
  20. +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  21. | void | :ref:`clear<class_AStar_clear>` **(** **)** |
  22. +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  23. | void | :ref:`connect_points<class_AStar_connect_points>` **(** :ref:`int<class_int>` id, :ref:`int<class_int>` to_id, :ref:`bool<class_bool>` bidirectional=true **)** |
  24. +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  25. | void | :ref:`disconnect_points<class_AStar_disconnect_points>` **(** :ref:`int<class_int>` id, :ref:`int<class_int>` to_id **)** |
  26. +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  27. | :ref:`int<class_int>` | :ref:`get_available_point_id<class_AStar_get_available_point_id>` **(** **)** const |
  28. +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  29. | :ref:`int<class_int>` | :ref:`get_closest_point<class_AStar_get_closest_point>` **(** :ref:`Vector3<class_vector3>` to_pos **)** const |
  30. +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  31. | :ref:`Vector3<class_vector3>` | :ref:`get_closest_pos_in_segment<class_AStar_get_closest_pos_in_segment>` **(** :ref:`Vector3<class_vector3>` to_pos **)** const |
  32. +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  33. | :ref:`IntArray<class_intarray>` | :ref:`get_id_path<class_AStar_get_id_path>` **(** :ref:`int<class_int>` from_id, :ref:`int<class_int>` to_id **)** |
  34. +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  35. | :ref:`Vector3Array<class_vector3array>` | :ref:`get_point_path<class_AStar_get_point_path>` **(** :ref:`int<class_int>` from_id, :ref:`int<class_int>` to_id **)** |
  36. +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  37. | :ref:`Vector3<class_vector3>` | :ref:`get_point_pos<class_AStar_get_point_pos>` **(** :ref:`int<class_int>` id **)** const |
  38. +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  39. | :ref:`float<class_float>` | :ref:`get_point_weight_scale<class_AStar_get_point_weight_scale>` **(** :ref:`int<class_int>` id **)** const |
  40. +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  41. | :ref:`bool<class_bool>` | :ref:`has_point<class_AStar_has_point>` **(** :ref:`int<class_int>` id **)** const |
  42. +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  43. | void | :ref:`remove_point<class_AStar_remove_point>` **(** :ref:`int<class_int>` id **)** |
  44. +------------------------------------------+-------------------------------------------------------------------------------------------------------------------------------------------------------------------+
  45. Member Function Description
  46. ---------------------------
  47. .. _class_AStar__compute_cost:
  48. - void **_compute_cost** **(** :ref:`int<class_int>` from_id, :ref:`int<class_int>` to_id **)** virtual
  49. .. _class_AStar__estimate_cost:
  50. - void **_estimate_cost** **(** :ref:`int<class_int>` from_id, :ref:`int<class_int>` to_id **)** virtual
  51. .. _class_AStar_add_point:
  52. - void **add_point** **(** :ref:`int<class_int>` id, :ref:`Vector3<class_vector3>` pos, :ref:`float<class_float>` weight_scale=1 **)**
  53. Add a new point at the given position. The ``weight_scale`` has to be 1 or larger.
  54. .. _class_AStar_are_points_connected:
  55. - :ref:`bool<class_bool>` **are_points_connected** **(** :ref:`int<class_int>` id, :ref:`int<class_int>` to_id **)** const
  56. .. _class_AStar_clear:
  57. - void **clear** **(** **)**
  58. .. _class_AStar_connect_points:
  59. - void **connect_points** **(** :ref:`int<class_int>` id, :ref:`int<class_int>` to_id, :ref:`bool<class_bool>` bidirectional=true **)**
  60. .. _class_AStar_disconnect_points:
  61. - void **disconnect_points** **(** :ref:`int<class_int>` id, :ref:`int<class_int>` to_id **)**
  62. .. _class_AStar_get_available_point_id:
  63. - :ref:`int<class_int>` **get_available_point_id** **(** **)** const
  64. .. _class_AStar_get_closest_point:
  65. - :ref:`int<class_int>` **get_closest_point** **(** :ref:`Vector3<class_vector3>` to_pos **)** const
  66. .. _class_AStar_get_closest_pos_in_segment:
  67. - :ref:`Vector3<class_vector3>` **get_closest_pos_in_segment** **(** :ref:`Vector3<class_vector3>` to_pos **)** const
  68. .. _class_AStar_get_id_path:
  69. - :ref:`IntArray<class_intarray>` **get_id_path** **(** :ref:`int<class_int>` from_id, :ref:`int<class_int>` to_id **)**
  70. .. _class_AStar_get_point_path:
  71. - :ref:`Vector3Array<class_vector3array>` **get_point_path** **(** :ref:`int<class_int>` from_id, :ref:`int<class_int>` to_id **)**
  72. .. _class_AStar_get_point_pos:
  73. - :ref:`Vector3<class_vector3>` **get_point_pos** **(** :ref:`int<class_int>` id **)** const
  74. .. _class_AStar_get_point_weight_scale:
  75. - :ref:`float<class_float>` **get_point_weight_scale** **(** :ref:`int<class_int>` id **)** const
  76. .. _class_AStar_has_point:
  77. - :ref:`bool<class_bool>` **has_point** **(** :ref:`int<class_int>` id **)** const
  78. .. _class_AStar_remove_point:
  79. - void **remove_point** **(** :ref:`int<class_int>` id **)**