C++/BehaviorTreesLib/Condition.cpp
EStatus Condition::tickNode()
	{
		try
		{
			this->setResult(mCondition() ? EStatus::SUCCESS : EStatus::FAILURE);
		}
		catch (const std::exception& e)
		{
			this->setResult(EStatus::ERROR);
		}
		return this->getResult();
	}
// Return SUCCESS if the condition if met. Otherwise, FAILURE.
Return SUCCESS if the condition if met. Otherwise, FAILURE.
Return SUCCESS if the condition if met . Otherwise FAILURE .
EStatus Condition::tickNode()
	{
		try
		{
			this->setResult(mCondition() ? EStatus::SUCCESS : EStatus::FAILURE);
		}
		catch (const std::exception& e)
		{
			this->setResult(EStatus::ERROR);
		}
		return this->getResult();
	}
EStatus Condition :: tickNode ( ) { try { this -> setResult ( mCondition ( ) ? EStatus :: SUCCESS : EStatus :: FAILURE ) ; } catch ( const std :: exception & e ) { this -> setResult ( EStatus :: ERROR ) ; } return this -> getResult ( ) ; }
Return SUCCESS if the condition if met.
Return SUCCESS if the condition if met .