Module: BehaviorTree::TreeStructure::Printer

Included in:
BehaviorTree::Tree
Defined in:
lib/behavior_tree/concerns/tree_structure/printer.rb

Overview

Algorithm to print tree.

Instance Method Summary collapse

Instance Method Details



9
10
11
12
13
14
15
16
# File 'lib/behavior_tree/concerns/tree_structure/printer.rb', line 9

def print
  puts '' # Style for the root node.
  tree_lines.each { |line| puts line }
  puts ''
  puts cycle_string
  puts uniq_nodes_string
  puts size_string
end