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

Method tick

src/action_node.cpp:35–51  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33{}
34
35NodeStatus SimpleActionNode::tick()
36{
37 NodeStatus prev_status = status();
38
39 if(prev_status == NodeStatus::IDLE)
40 {
41 setStatus(NodeStatus::RUNNING);
42 prev_status = NodeStatus::RUNNING;
43 }
44
45 const NodeStatus status = tick_functor_(*this);
46 if(status != prev_status)
47 {
48 setStatus(status);
49 }
50 return status;
51}
52
53//-------------------------------------------------------
54

Callers

nothing calls this directly

Calls 1

LogicErrorClass · 0.85

Tested by

no test coverage detected