示例#1
0
void CCLayerAnimationControllerImpl::animate(double frameBeginTimeSecs)
{
    startAnimationsWaitingForNextTick(frameBeginTimeSecs);
    startAnimationsWaitingForStartTime(frameBeginTimeSecs);
    startAnimationsWaitingForTargetAvailability(frameBeginTimeSecs);
    resolveConflicts(frameBeginTimeSecs);
    tickAnimations(frameBeginTimeSecs);
    purgeFinishedAnimations();
    startAnimationsWaitingForTargetAvailability(frameBeginTimeSecs);
}
void CCLayerAnimationController::animate(double monotonicTime, CCAnimationEventsVector* events)
{
    startAnimationsWaitingForNextTick(monotonicTime, events);
    startAnimationsWaitingForStartTime(monotonicTime, events);
    startAnimationsWaitingForTargetAvailability(monotonicTime, events);
    resolveConflicts(monotonicTime);
    tickAnimations(monotonicTime);
    purgeFinishedAnimations(monotonicTime, events);
    startAnimationsWaitingForTargetAvailability(monotonicTime, events);
}
示例#3
0
void CCLayerAnimationController::animateForReal(double monotonicTime, CCAnimationEventsVector* events)
{
    startAnimationsWaitingForExtraTick(monotonicTime, events);
    startAnimationsWaitingForNextTick(monotonicTime, events);
    startAnimationsWaitingForStartTime(monotonicTime, events);
    startAnimationsWaitingForTargetAvailability(monotonicTime, events);
    resolveConflicts(monotonicTime);
    tickAnimations(monotonicTime, m_client, true);
    markAnimationsForDeletion(monotonicTime);
    startAnimationsWaitingForTargetAvailability(monotonicTime, events);
}