Advertisement
Guest User

bt1::Status bt1::ConditionArrived<Subject>::update()

a guest
Apr 6th, 2017
86
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.41 KB | None | 0 0
  1. template<class Subject>
  2. bt1::Status bt1::ConditionArrived<Subject>::update()
  3. {
  4.     if (BB->IsArrived())
  5.     {
  6.         return bt1::BH_FAILURE; // ok I want the node to return success in case the bool is false so that the sequence
  7.                                 // will continue running it's other children.
  8.                                 // If it is true that tank has arrived then I don't need to find the path
  9.     }
  10.     return bt1::BH_SUCCESS;
  11. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement