class BehaviorTree::Node::Conditional(State, Effect)

Defined in:

behavior_tree/node/conditional.cr

Constructors

Instance Method Summary

Instance methods inherited from class BehaviorTree::Node::Node(State, Effect)

run(state : State) : Tuple(Bool, Array(Tuple(String, Effect))) run

Constructor Detail

def self.new(predicate : State -> Bool, success : ::BehaviorTree::Node::Node(State, Effect), failure : ::BehaviorTree::Node::Node(State, Effect)) #

[View source]

Instance Method Detail

def run(state : State) : Tuple(Bool, Array(Tuple(String, Effect))) #

[View source]