| 59 | } |
| 60 | |
| 61 | void 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 | |
| 76 | void CrossDoor::reset() |
| 77 | { |