Exemplo n.º 1
0
 void schedule(SEL_CAAnimation selector, CAObject* target, float totalTime, float interval, float delay)
 {
     CC_RETURN_IF(isSchedule(selector, target));
     Animation* obj = new Animation();
     _deque.pushBack(obj);
     obj->startAnimation(selector, target, totalTime, interval, delay);
     obj->release();
 }
Exemplo n.º 2
0
void CommonImageCacheManager::pushImage(CAImage* image)
{
    CC_RETURN_IF(m_dImageQueue.contains(image));
    m_dImageQueue.pushBack(image);
    CCArray* array = CCArray::create();
    array->addObject(CCDelayTime::create(10));
    array->addObject(CCCallFunc::create(this, callfunc_selector(CommonImageCacheManager::update)));
    this->runAction(CCSequence::create(array));
}
void CommonImageCacheManager::pushImage(CAImage* image)
{
    CC_RETURN_IF(m_dImageQueue.contains(image));
    m_dImageQueue.pushBack(image);
    
    CAViewAnimation::beginAnimations("", NULL);
    CAViewAnimation::setAnimationDuration(10);
    CAViewAnimation::setAnimationDidStopSelector(this, CAViewAnimation0_selector(CommonImageCacheManager::update));
    CAViewAnimation::commitAnimations();
}