Ejemplo n.º 1
0
EaseBackInOut *EaseBackInOut::create(ActionInterval *action)
{
    EaseBackInOut *ret = new(std::nothrow) EaseBackInOut();
    if (ret) {
        if (ret->initWithAction(action) == false) {
            SAFE_RELEASE(ret);
        }
    }

    return ret;
}
Ejemplo n.º 2
0
EaseBackInOut* EaseBackInOut::create(ActionInterval* action)
{
    EaseBackInOut *ret = new (std::nothrow) EaseBackInOut();
    if (ret && ret->initWithAction(action))
    {
        ret->autorelease();
        return ret;
    }

    delete ret;
    return nullptr;
}
Ejemplo n.º 3
0
EaseBackInOut* EaseBackInOut::create(ActionInterval* action)
{
    EaseBackInOut *ret = new (std::nothrow) EaseBackInOut();
    if (ret)
    {
        if (ret->initWithAction(action))
        {
            ret->autorelease();
        }
        else
        {
            CC_SAFE_RELEASE_NULL(ret);
        }
    }

    return ret;
}
Ejemplo n.º 4
0
EaseBackInOut* EaseBackInOut::create(ActionInterval* pAction)
{
    EaseBackInOut *pRet = new EaseBackInOut();
    if (pRet)
    {
        if (pRet->initWithAction(pAction))
        {
            pRet->autorelease();
        }
        else
        {
            CC_SAFE_RELEASE_NULL(pRet);
        }
    }

    return pRet;
}
Ejemplo n.º 5
0
Object* EaseBackInOut::copyWithZone(Zone *pZone)
{
    Zone* pNewZone = NULL;
    EaseBackInOut* pCopy = NULL;
    if(pZone && pZone->_copyObject) 
    {
        //in case of being called at sub class
        pCopy = (EaseBackInOut*)(pZone->_copyObject);
    }
    else
    {
        pCopy = new EaseBackInOut();
        pNewZone = new Zone(pCopy);
    }

    pCopy->initWithAction((ActionInterval *)(_inner->copy()->autorelease()));
    
    CC_SAFE_DELETE(pNewZone);
    return pCopy;
}