automata v0.1.0 Automaton.Types.BT.CompositeServer behaviour

When a child behavior is complete and returns its status code the Composite decides whether to continue through its children or whether to stop there and then and return a value.

The behavior tree represents all possible Actions that your AI can take. The route from the top level to each leaf represents one course of action, and the behavior tree algorithm traverses among those courses of action in a left-to-right manner. In other words, it performs a depth-first traversal.

Link to this section Summary

Link to this section Functions

Link to this section Callbacks

Link to this callback

add_child(term)

Specs

add_child(term()) :: {:ok, list()} | {:error, String.t()}
Link to this callback

clear_children()

Specs

clear_children() :: {:ok, list()} | {:error, String.t()}
Link to this callback

continue_status()

Specs

continue_status() :: atom()
Link to this callback

remove_child(term)

Specs

remove_child(term()) :: {:ok, list()} | {:error, String.t()}