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;
}
Ejemplo n.º 2
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;
}