Пример #1
0
EaseBackIn *EaseBackIn::create(ActionInterval *action)
{
    EaseBackIn *ret = new(std::nothrow) EaseBackIn();
    if (ret) {
        if (ret->initWithAction(action) == false) {
            SAFE_RELEASE(ret);
        }
    }

    return ret;
}
Пример #2
0
EaseBackIn* EaseBackIn::create(ActionInterval *action)
{
    EaseBackIn *ret = new (std::nothrow) EaseBackIn();
    if (ret && ret->initWithAction(action))
    {
        ret->autorelease();
        return ret;
    }

    delete ret;
    return nullptr;
}
Пример #3
0
EaseBackIn* EaseBackIn::create(ActionInterval *action)
{
    EaseBackIn *ret = new (std::nothrow) EaseBackIn();
    if (ret)
    {
        if (ret->initWithAction(action))
        {
            ret->autorelease();
        }
        else
        {
            CC_SAFE_RELEASE_NULL(ret);
        }
    }

    return ret;
}
Пример #4
0
EaseBackIn* EaseBackIn::create(ActionInterval *pAction)
{
    EaseBackIn *pRet = new EaseBackIn();
    if (pRet)
    {
        if (pRet->initWithAction(pAction))
        {
            pRet->autorelease();
        }
        else
        {
            CC_SAFE_RELEASE_NULL(pRet);
        }
    }

    return pRet;
}
Пример #5
0
Object* EaseBackIn::copyWithZone(Zone *pZone)
{
    Zone* pNewZone = NULL;
    EaseBackIn* pCopy = NULL;
    if(pZone && pZone->_copyObject) 
    {
        //in case of being called at sub class
        pCopy = (EaseBackIn*)(pZone->_copyObject);
    }
    else
    {
        pCopy = new EaseBackIn();
        pNewZone = new Zone(pCopy);
    }

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