コード例 #1
0
ファイル: CCPomelo.cpp プロジェクト: DalongChai/CCPomelo
CCPomeloNotify_*CCPomelo::popNotify(){
    if (notify_queue.size()>0) {
        CCPomeloNotify_ *ntf = notify_queue.front();
        notify_queue.pop();
        desTaskCount();
        return  ntf;
    }else{
        return  NULL;
    }
}
コード例 #2
0
ファイル: CCPomelo.cpp プロジェクト: DalongChai/CCPomelo
CCPomeloReponse_*CCPomelo::popReponse(){
    if (reponse_queue.size()>0) {
        CCPomeloReponse_ *response = reponse_queue.front();
        reponse_queue.pop();
        desTaskCount();
        return  response;
    }else{
        return  NULL;
    }
}
コード例 #3
0
ファイル: CCPomelo.cpp プロジェクト: DalongChai/CCPomelo
CCPomeloEvent_*CCPomelo::popEvent(){
    if (event_queue.size()>0) {
        CCPomeloEvent_ *event = event_queue.front();
        event_queue.pop();
        desTaskCount();
        return  event;
    }else{
        return  NULL;
    }
}
コード例 #4
0
void CCPomelo::connectCallBack()
{
    if (connect_content)
    {
        CCPomeloReponse resp;
        resp.status = connect_content->status;
        resp.docs = NULL;
        connect_content->func((Node*)this, &resp);
        
        connect_status  = 0;
        desTaskCount();
        delete connect_content;
        connect_content = NULL;
    }
}
コード例 #5
0
ファイル: CCPomelo.cpp プロジェクト: DalongChai/CCPomelo
void CCPomelo::connectCallBack(){
    if (connect_content) {
        CCObject *pTarget = connect_content->content->pTarget;
        SEL_CallFuncND pSelector = connect_content->content->pSelector;
        if (pTarget && pSelector)
        {
            CCPomeloReponse resp;
            resp.status = connect_content->status;
            resp.docs = NULL;
            (pTarget->*pSelector)((CCNode *)this,&resp);
        }
        connect_status  = 0;
        desTaskCount();
        delete connect_content;
        connect_content = NULL;
    }
   
}