Current section

Files

Jump to
erlang_behaviour_trees src bt_engine bt_node_behaviours bt_tree.erl
Raw

src/bt_engine/bt_node_behaviours/bt_tree.erl

-module(bt_tree).
-include("bt_nodes.hrl").
-callback get_bb_keys() -> Keys :: list(string()).
-callback get_params() -> Params :: list(string()).
%% in a subtree, we generally declare blackboard keys and then define the
%% whole subtree
-callback get_tree(Params :: term(), BBKeys :: term()) ->
Node :: decorator() | sequence() | selector().