Example #1
0
    EBTStatus PlannerTaskSelector::update(Agent* pAgent, EBTStatus childStatus)
    {
        BEHAVIAC_ASSERT(Selector::DynamicCast(this->m_node) != 0);
        Selector* node = (Selector*) this->m_node;

        EBTStatus s = node->SelectorUpdate(pAgent, childStatus, this->m_activeChildIndex, this->m_children);

        return s;
    }
Example #2
0
    EBTStatus SelectorTask::update(Agent* pAgent, EBTStatus childStatus)
    {
        BEHAVIAC_UNUSED_VAR(pAgent);

        // bool bFirst = true;

        BEHAVIAC_ASSERT(this->m_activeChildIndex < (int)this->m_children.size());

        Selector* node = (Selector*)this->m_node;
        return node->SelectorUpdate(pAgent, childStatus, this->m_activeChildIndex, this->m_children);
    }