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

Defined in:

behavior_tree/node/sequence.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(children : Array(::BehaviorTree::Node::Node(State, Effect)) = [] of Node(State, Effect)) #

[View source]

Instance Method Detail

def <<(child : Node(State)) #

[View source]
def run(state : State) : Tuple(Bool, Array(Tuple(String, Effect))) #

[View source]