2024-01-25 13:56:59 +00:00
:github_url: hide
.. DO NOT EDIT THIS FILE!!!
.. Generated automatically from Godot engine sources.
2024-07-20 15:25:24 +00:00
.. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
.. XML source: https://github.com/godotengine/godot/tree/master/modules/limboai/doc_classes/BlackboardPlan.xml.
2024-01-25 13:56:59 +00:00
.. _class_BlackboardPlan:
BlackboardPlan
==============
**Inherits:**
Stores and manages variables that will be used in constructing new :ref: `Blackboard<class_Blackboard>` instances.
2024-03-02 15:06:32 +00:00
.. rst-class :: classref-reftable-group
2024-03-06 20:50:35 +00:00
Properties
----------
.. table ::
:widths: auto
2024-07-20 15:25:24 +00:00
+----------+-------------------------------------------------------------------------------------+----------+
| `` bool `` | :ref: `prefetch_nodepath_vars<class_BlackboardPlan_property_prefetch_nodepath_vars>` | `` true `` |
+----------+-------------------------------------------------------------------------------------+----------+
2024-03-06 20:50:35 +00:00
.. rst-class :: classref-reftable-group
2024-03-02 15:06:32 +00:00
Methods
-------
.. table ::
:widths: auto
2024-07-20 15:25:24 +00:00
+---------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref: `Blackboard<class_Blackboard>` | :ref: `create_blackboard<class_BlackboardPlan_method_create_blackboard>` \ (\ node\: `` Node `` , parent_scope\: :ref: `Blackboard<class_Blackboard>` = null\ ) |
+---------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| :ref: `BlackboardPlan<class_BlackboardPlan>` | :ref: `get_base_plan<class_BlackboardPlan_method_get_base_plan>` \ (\ ) |const| |
+---------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| `` Callable `` | :ref: `get_parent_scope_plan_provider<class_BlackboardPlan_method_get_parent_scope_plan_provider>` \ (\ ) |const| |
+---------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| `` bool `` | :ref: `is_derived<class_BlackboardPlan_method_is_derived>` \ (\ ) |const| |
+---------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| |void| | :ref: `populate_blackboard<class_BlackboardPlan_method_populate_blackboard>` \ (\ blackboard\: :ref: `Blackboard<class_Blackboard>` , overwrite\: `` bool `` , node\: `` Node ` ` \ ) |
+---------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| |void| | :ref: `set_base_plan<class_BlackboardPlan_method_set_base_plan>` \ (\ blackboard_plan\: :ref: `BlackboardPlan<class_BlackboardPlan>` \ ) |
+---------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| |void| | :ref: `set_parent_scope_plan_provider<class_BlackboardPlan_method_set_parent_scope_plan_provider>` \ (\ callable\: `` Callable ` ` \ ) |
+---------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| |void| | :ref: `sync_with_base_plan<class_BlackboardPlan_method_sync_with_base_plan>` \ (\ ) |
+---------------------------------------------+----------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
2024-03-06 20:50:35 +00:00
.. rst-class :: classref-section-separator
----
.. rst-class :: classref-descriptions-group
Property Descriptions
---------------------
.. _class_BlackboardPlan_property_prefetch_nodepath_vars:
.. rst-class :: classref-property
2024-07-20 15:25:24 +00:00
`` bool `` **prefetch_nodepath_vars** = `` true `` :ref: `🔗<class_BlackboardPlan_property_prefetch_nodepath_vars>`
2024-03-06 20:50:35 +00:00
.. rst-class :: classref-property-setget
2024-07-20 15:25:24 +00:00
- |void| **set_prefetch_nodepath_vars** \ (\ value\: `` bool ` ` \ )
- `` bool `` **is_prefetching_nodepath_vars** \ (\ )
2024-03-06 20:50:35 +00:00
Enables or disables `` NodePath `` variable prefetching. If `` true `` , `` NodePath `` values will be replaced with node instances when the :ref: `Blackboard<class_Blackboard>` is created.
2024-03-02 15:06:32 +00:00
.. rst-class :: classref-section-separator
----
.. rst-class :: classref-descriptions-group
Method Descriptions
-------------------
.. _class_BlackboardPlan_method_create_blackboard:
.. rst-class :: classref-method
2024-07-20 15:25:24 +00:00
:ref:`Blackboard<class_Blackboard>` **create_blackboard**\ (\ node\: ``Node``, parent_scope\: :ref:`Blackboard<class_Blackboard>` = null\ ) :ref:`🔗<class_BlackboardPlan_method_create_blackboard>`
2024-03-02 15:06:32 +00:00
2024-03-06 20:50:35 +00:00
Constructs a new instance of a :ref: `Blackboard<class_Blackboard>` using this plan. If `` NodePath `` prefetching is enabled, `` node `` will be used to retrieve node instances for `` NodePath `` variables and substitute their values.
2024-03-02 15:06:32 +00:00
.. rst-class :: classref-item-separator
----
2024-03-08 14:33:28 +00:00
.. _class_BlackboardPlan_method_get_base_plan:
.. rst-class :: classref-method
2024-07-20 15:25:24 +00:00
:ref: `BlackboardPlan<class_BlackboardPlan>` **get_base_plan** \ (\ ) |const| :ref: `🔗<class_BlackboardPlan_method_get_base_plan>`
2024-03-08 14:33:28 +00:00
Returns the base plan. See :ref: `is_derived<class_BlackboardPlan_method_is_derived>` .
.. rst-class :: classref-item-separator
----
2024-05-15 18:58:38 +00:00
.. _class_BlackboardPlan_method_get_parent_scope_plan_provider:
.. rst-class :: classref-method
2024-07-20 15:25:24 +00:00
`` Callable `` **get_parent_scope_plan_provider** \ (\ ) |const| :ref: `🔗<class_BlackboardPlan_method_get_parent_scope_plan_provider>`
2024-05-15 18:58:38 +00:00
Returns the parent scope plan provider - a callable that returns a **BlackboardPlan** .
.. rst-class :: classref-item-separator
----
2024-03-08 14:33:28 +00:00
.. _class_BlackboardPlan_method_is_derived:
.. rst-class :: classref-method
2024-07-20 15:25:24 +00:00
`` bool `` **is_derived** \ (\ ) |const| :ref: `🔗<class_BlackboardPlan_method_is_derived>`
2024-03-08 14:33:28 +00:00
Returns `` true `` if this plan is derived from another, i.e., the base plan is not `` null `` . A derived plan can only contain variables that are present in the base plan, and only variable values can be different.
.. rst-class :: classref-item-separator
----
2024-03-02 15:06:32 +00:00
.. _class_BlackboardPlan_method_populate_blackboard:
.. rst-class :: classref-method
2024-07-20 15:25:24 +00:00
|void| **populate_blackboard** \ (\ blackboard\: :ref: `Blackboard<class_Blackboard>` , overwrite\: `` bool `` , node\: `` Node ` ` \ ) :ref: ` 🔗<class_BlackboardPlan_method_populate_blackboard> `
2024-03-02 15:06:32 +00:00
2024-03-06 20:50:35 +00:00
Populates `` blackboard `` with the variables from this plan. If `` overwrite `` is `` true `` , existing variables with the same names will be overwritten. If `` NodePath `` prefetching is enabled, `` node `` will be used to retrieve node instances for `` NodePath `` variables and substitute their values.
2024-03-02 15:06:32 +00:00
2024-03-08 14:33:28 +00:00
.. rst-class :: classref-item-separator
----
.. _class_BlackboardPlan_method_set_base_plan:
.. rst-class :: classref-method
2024-07-20 15:25:24 +00:00
|void| **set_base_plan** \ (\ blackboard_plan\: :ref: `BlackboardPlan<class_BlackboardPlan>` \ ) :ref: `🔗<class_BlackboardPlan_method_set_base_plan>`
2024-03-08 14:33:28 +00:00
Sets the base plan. If assigned, this plan will be derived from the base plan.
Use with caution, as it will remove variables not present in the base plan. Only use this for custom tooling.
.. rst-class :: classref-item-separator
----
2024-05-15 18:58:38 +00:00
.. _class_BlackboardPlan_method_set_parent_scope_plan_provider:
.. rst-class :: classref-method
2024-07-20 15:25:24 +00:00
|void| **set_parent_scope_plan_provider** \ (\ callable\: `` Callable ` ` \ ) :ref: ` 🔗<class_BlackboardPlan_method_set_parent_scope_plan_provider> `
2024-05-15 18:58:38 +00:00
Sets the parent scope plan provider - a callable that returns a **BlackboardPlan** . Used to provide hints in the inspector. When set, mapping feature becomes available.
.. rst-class :: classref-item-separator
----
2024-03-08 14:33:28 +00:00
.. _class_BlackboardPlan_method_sync_with_base_plan:
.. rst-class :: classref-method
2024-07-20 15:25:24 +00:00
|void| **sync_with_base_plan** \ (\ ) :ref: `🔗<class_BlackboardPlan_method_sync_with_base_plan>`
2024-03-08 14:33:28 +00:00
Synchronizes this plan with the base plan: removes variables not present in the base plan, and updates type information. Only use this for custom tooling.
2024-01-25 13:56:59 +00:00
.. |virtual| replace :: :abbr: `virtual (This method should typically be overridden by the user to have any effect.)`
.. |const| replace :: :abbr: `const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
.. |vararg| replace :: :abbr: `vararg (This method accepts any number of arguments after the ones described here.)`
.. |constructor| replace :: :abbr: `constructor (This method is used to construct a type.)`
.. |static| replace :: :abbr: `static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
.. |operator| replace :: :abbr: `operator (This method describes a valid operator to use with this type as left-hand operand.)`
.. |bitfield| replace :: :abbr: `BitField (This value is an integer composed as a bitmask of the following flags.)`
2024-07-20 15:25:24 +00:00
.. |void| replace :: :abbr: `void (No return value.)`