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

Method registerNodes

sample_nodes/crossdoor_nodes.cpp:61–74  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

59}
60
61void CrossDoor::registerNodes(BT::BehaviorTreeFactory& factory)
62{
63 factory.registerSimpleCondition("IsDoorClosed",
64 std::bind(&CrossDoor::isDoorClosed, this));
65
66 factory.registerSimpleAction("PassThroughDoor",
67 std::bind(&CrossDoor::passThroughDoor, this));
68
69 factory.registerSimpleAction("OpenDoor", std::bind(&CrossDoor::openDoor, this));
70
71 factory.registerSimpleAction("PickLock", std::bind(&CrossDoor::pickLock, this));
72
73 factory.registerSimpleCondition("SmashDoor", std::bind(&CrossDoor::smashDoor, this));
74}
75
76void CrossDoor::reset()
77{

Callers 4

BT_REGISTER_NODESFunction · 0.80
TESTFunction · 0.80
mainFunction · 0.80
mainFunction · 0.80

Calls 3

bindFunction · 0.85
registerSimpleActionMethod · 0.80

Tested by 1

TESTFunction · 0.64