CCPageTurn3D* CCPageTurn3D::actionWithSize(const ccGridSize& gridSize, ccTime time)
	{
		CCPageTurn3D *pAction = new CCPageTurn3D();

		if (pAction)
		{
			if (pAction->initWithSize(gridSize, time))
			{
				pAction->autorelease();
			}
			else
			{
				CC_SAFE_RELEASE_NULL(pAction);
			}
		}

		return pAction;
	}
NS_CC_BEGIN
	CCPageTurn3D* CCPageTurn3D::actionWithSize(const CCSize& gridSize, ccTime time)
{
	CCPageTurn3D *pAction = new CCPageTurn3D();

	if (pAction)
	{
		if (pAction->initWithDuration(time, gridSize))
		{
			pAction->autorelease();
		}
		else
		{
			CC_SAFE_RELEASE_NULL(pAction);
		}
	}

	return pAction;
}
예제 #3
0
NS_CC_BEGIN

CCPageTurn3D* CCPageTurn3D::create(float duration, const CCSize& gridSize)
{
    CCPageTurn3D *pAction = new CCPageTurn3D();

    if (pAction)
    {
        if (pAction->initWithDuration(duration, gridSize))
        {
            pAction->autorelease();
        }
        else
        {
            CC_SAFE_RELEASE_NULL(pAction);
        }
    }

    return pAction;
}