//----------------------------------------------------------------// void MOAINodeMgr::Update () { for ( u32 iterations = 0; this->mScheduled && ( iterations < this->mMaxIterations ); ++iterations ) { this->mScheduled = false; MOAINode* node = this->mUpdateListHead; for ( ; node ; node = node->mNext ) { node->DepNodeUpdate (); } } if ( !this->mScheduled ) { this->Reset (); } }
//----------------------------------------------------------------// void MOAINodeMgr::Update () { MOAINode* node = this->mUpdateListHead; for ( ; node ; node = node->mNext ) { node->DepNodeUpdate (); } // TODO: fix this up later node = this->mUpdateListHead; while ( node ) { MOAINode* temp = node; node = node->mNext; temp->mState = MOAINode::STATE_IDLE; } this->mUpdateListHead = 0; this->mUpdateListTail = 0; }