module BehaviorTree::DSL(State, Effect)

Defined in:

behavior_tree/dsl.cr

Instance Method Summary

Instance Method Detail

def action(name : String, &block : State -> Tuple(Bool, Effect)) #

[View source]
def behavior_tree(initial_state, root_node) #

[View source]
def conditional(predicate : State -> Bool, success : Node::Node(State, Effect), failure : Node::Node(State, Effect)) #

[View source]
def selector(children : Array(Node::Node(State, Effect))) #

[View source]
def sequence(children : Array(Node::Node(State, Effect))) #

[View source]