module BehaviorTree::DSL(State, Effect)
Defined in:
behavior_tree/dsl.crInstance Method Summary
- #action(name : String, &block : State -> Tuple(Bool, Effect))
- #behavior_tree(initial_state, root_node)
- #conditional(predicate : State -> Bool, success : Node::Node(State, Effect), failure : Node::Node(State, Effect))
- #selector(children : Array(Node::Node(State, Effect)))
- #sequence(children : Array(Node::Node(State, Effect)))
Instance Method Detail
def conditional(predicate : State -> Bool, success : Node::Node(State, Effect), failure : Node::Node(State, Effect))
#