| 20 | {} |
| 21 | |
| 22 | void DecoratorNode::setChild(TreeNode* child) |
| 23 | { |
| 24 | if(child_node_ != nullptr) |
| 25 | { |
| 26 | throw BehaviorTreeException("Decorator [", name(), "] has already a child assigned"); |
| 27 | } |
| 28 | |
| 29 | child_node_ = child; |
| 30 | } |
| 31 | |
| 32 | void DecoratorNode::halt() |
| 33 | { |