真实的国产乱ⅩXXX66竹夫人,五月香六月婷婷激情综合,亚洲日本VA一区二区三区,亚洲精品一区二区三区麻豆

成都創(chuàng)新互聯(lián)網(wǎng)站制作重慶分公司

cocos2d-xCCScheduler-創(chuàng)新互聯(lián)

CCNode::CCNode(void){

創(chuàng)新互聯(lián)建站是一家企業(yè)級(jí)云計(jì)算解決方案提供商,超15年IDC數(shù)據(jù)中心運(yùn)營(yíng)經(jīng)驗(yàn)。主營(yíng)GPU顯卡服務(wù)器,站群服務(wù)器,成都機(jī)柜租用,海外高防服務(wù)器,大帶寬服務(wù)器,動(dòng)態(tài)撥號(hào)VPS,海外云手機(jī),海外云服務(wù)器,海外服務(wù)器租用托管等。

  m_pScheduler = director->getScheduler();

  m_pScheduler->retain();

}

void CCNode::schedule(SEL_SCHEDULE selector)

{

this->schedule(selector, 0.0f, kCCRepeatForever, 0.0f);

}

void CCNode::schedule(SEL_SCHEDULE selector, float interval, unsignedint repeat, float delay)

{

CCAssert( selector, "Argument must be non-nil");

CCAssert( interval >=0, "Argument must be positive");

m_pScheduler->scheduleSelector(selector, this, interval , repeat, delay, !m_bRunning);

}

void CCScheduler::scheduleSelector(SEL_SCHEDULE pfnSelector, CCObject *pTarget, float fInterval, unsignedint repeat, float delay, bool bPaused)

{

CCAssert(pfnSelector, "Argument selector must be non-NULL");

CCAssert(pTarget, "Argument target must be non-NULL");

tHashTimerEntry *pElement = NULL;

HASH_FIND_INT(m_pHashForTimers, &pTarget, pElement);

if (! pElement)

  {

    pElement = (tHashTimerEntry *)calloc(sizeof(*pElement), 1);

    pElement->target = pTarget;

if (pTarget)

    {

      pTarget->retain();

    }

HASH_ADD_INT(m_pHashForTimers, target, pElement);

// Is this the 1st element ? Then set the pause level to all the selectors of this target

    pElement->paused = bPaused;

  }

else

  {

CCAssert(pElement->paused == bPaused, "");

  }

if (pElement->timers == NULL)

  {

    pElement->timers = ccArrayNew(10);

  }

else

  {

for (unsignedint i = 0; i < pElement->timers->num; ++i)

    {

CCTimer *timer = (CCTimer*)pElement->timers->arr[i];

if (pfnSelector == timer->getSelector())

      {

CCLOG("CCScheduler#scheduleSelector. Selector already scheduled. Updating interval from: %.4f to %.4f", timer->getInterval(), fInterval);

        timer->setInterval(fInterval);

return;

      }

    }

ccArrayEnsureExtraCapacity(pElement->timers, 1);

  }

CCTimer *pTimer = newCCTimer();

  pTimer->initWithTarget(pTarget, pfnSelector, fInterval, repeat, delay);

ccArrayAppendObject(pElement->timers, pTimer);

  pTimer->release();

}

bool CCDirector::init(void)

{

// scheduler

m_pScheduler = newCCScheduler();

// action manager

m_pActionManager = newCCActionManager();

m_pScheduler->scheduleUpdateForTarget(m_pActionManager, kCCPrioritySystem, false);

}

// Draw the Scene

voidCCDirector::drawScene(void)

{

//tick before glClear: issue #533

if (! m_bPaused)

  {

m_pScheduler->update(m_fDeltaTime);

  }

}

void CCDisplayLinkDirector::mainLoop(void)

{

if (m_bPurgeDirecotorInNextLoop)

  {

m_bPurgeDirecotorInNextLoop = false;

purgeDirector();

  }

elseif (! m_bInvalid)

  {

drawScene();

// release the objects

CCPoolManager::sharedPoolManager()->pop();

  }

}

另外有需要云服務(wù)器可以了解下創(chuàng)新互聯(lián)scvps.cn,海內(nèi)外云服務(wù)器15元起步,三天無理由+7*72小時(shí)售后在線,公司持有idc許可證,提供“云服務(wù)器、裸金屬服務(wù)器、高防服務(wù)器、香港服務(wù)器、美國(guó)服務(wù)器、虛擬主機(jī)、免備案服務(wù)器”等云主機(jī)租用服務(wù)以及企業(yè)上云的綜合解決方案,具有“安全穩(wěn)定、簡(jiǎn)單易用、服務(wù)可用性高、性價(jià)比高”等特點(diǎn)與優(yōu)勢(shì),專為企業(yè)上云打造定制,能夠滿足用戶豐富、多元化的應(yīng)用場(chǎng)景需求。


網(wǎng)頁(yè)名稱:cocos2d-xCCScheduler-創(chuàng)新互聯(lián)
標(biāo)題網(wǎng)址:http://weahome.cn/article/dpihcj.html

其他資訊

在線咨詢

微信咨詢

電話咨詢

028-86922220(工作日)

18980820575(7×24)

提交需求

返回頂部