behaviortree

Members

Functions

Not
auto Not(T input)
process
void process(T a, U args)

Structs

Action
struct Action(T, alias proc)

The action node. Executes T with provided arguments, reports the result. If the result is neither true or false, proc is executed with the instance of T and arguments provided.

Condition
struct Condition(T)

The condition node. Executes T with provided arguments, reports the result. The result follows the principle of excluded middle.

Decorator
struct Decorator(T, alias dec)

Decorator node. Reseives the child and its args for fine granular adjustments.

Functor
struct Functor
Leaf
struct Leaf(T)
Parallel
struct Parallel(T...)

The parallel node. Tries to tick all of its children in parallel. Returns true if and only if there were more then Y successful ticks. If there were less successful ticks, returns false, if there were more then N failure ticks. Otherwise returns running.

Root
struct Root(T)

The root node.

Selector
struct Selector(T...)

The selector node. Tries to tick all of its children until one delivers an answer inequal to false.

Sequence
struct Sequence(T...)

The sequence node. Tries to tick all of its children until one delivers an answer equal to false.

Meta