Exemple #1
0
 void unschedule(SEL_CAAnimation selector, CAObject* target)
 {
     for (CADeque<Animation*>::iterator itr=_deque.begin(); itr!=_deque.end(); itr++)
     {
         Animation* obj = *itr;
         if (obj->m_obInfo.selector == selector && obj->m_obInfo.target == target)
         {
             
             CAScheduler::unscheduleAllForTarget(obj);
             _deque.erase(itr);
             break;
         }
     }
 }
Exemple #2
0
 bool isSchedule(SEL_CAAnimation selector, CAObject* target)
 {
     bool ret = false;
     
     for (CADeque<Animation*>::iterator itr=_deque.begin(); itr!=_deque.end(); itr++)
     {
         Animation* obj = *itr;
         if (obj->m_obInfo.selector == selector && obj->m_obInfo.target == target)
         {
             ret = true;
             break;
         }
     }
     return ret;
 }