class BehaviorTree::SingleChildNodeBase
A node that has a single child (abstract class).
Attributes
child[R]
Public Class Methods
new(child)
click to toggle source
Calls superclass method
BehaviorTree::NodeBase::new
# File lib/behavior_tree/single_child_node.rb, line 9 def initialize(child) validate_single_child! child super() @child = child.chainable_node end
Public Instance Methods
halt!()
click to toggle source
Calls superclass method
BehaviorTree::NodeBase#halt!
# File lib/behavior_tree/single_child_node.rb, line 19 def halt! super @child.halt! end
on_tick()
click to toggle source
# File lib/behavior_tree/single_child_node.rb, line 15 def on_tick @child.tick! end