MCPcopy Create free account
hub / github.com/BehaviorTree/BehaviorTree.CPP / registerSimpleCondition

Method registerSimpleCondition

src/bt_factory.cpp:218–229  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

216}
217
218void BehaviorTreeFactory::registerSimpleCondition(
219 const std::string& ID, const SimpleConditionNode::TickFunctor& tick_functor,
220 PortsList ports)
221{
222 const NodeBuilder builder = [tick_functor, ID](const std::string& name,
223 const NodeConfig& config) {
224 return std::make_unique<SimpleConditionNode>(name, tick_functor, config);
225 };
226
227 const TreeNodeManifest manifest = { NodeType::CONDITION, ID, std::move(ports), {} };
228 registerBuilder(manifest, builder);
229}
230
231void BehaviorTreeFactory::registerSimpleAction(
232 const std::string& ID, const SimpleActionNode::TickFunctor& tick_functor,

Callers 10

RegisterNodesFunction · 0.80
registerNodesMethod · 0.80
TEST_FFunction · 0.80
TESTFunction · 0.80
TEST_FFunction · 0.80
TESTFunction · 0.80
TESTFunction · 0.80
TEST_FFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 1

moveFunction · 0.85

Tested by 6

TEST_FFunction · 0.64
TESTFunction · 0.64
TEST_FFunction · 0.64
TESTFunction · 0.64
TESTFunction · 0.64
TEST_FFunction · 0.64