Ejemplo n.º 1
0
	//
	// FlipX
	//
	CCFlipX *CCFlipX::actionWithFlipX(bool x)
	{
		CCFlipX *pRet = new CCFlipX();
		pRet->initWithFlipX(x);
		pRet->autorelease();
		return pRet;
	}
Ejemplo n.º 2
0
//
// FlipX
//
CCFlipX *CCFlipX::actionWithFlipX(bool x) {
	CCFlipX *pRet = new CCFlipX();

	if (pRet && pRet->initWithFlipX(x)) {
		pRet->autorelease();
		return pRet;
	}

	CC_SAFE_DELETE(pRet)
	return NULL;
}
Ejemplo n.º 3
0
CCFlipX *CCFlipX::create(bool x)
{
    CCFlipX *pRet = new CCFlipX();

    if (pRet && pRet->initWithFlipX(x)) {
        CC_SAFE_AUTORELEASE(pRet);
        return pRet;
    }

    CC_SAFE_DELETE(pRet);
    return NULL;
}
CCFlipX* CCFlipX::create ( KDbool bFlipX )
{
	CCFlipX*  pRet = new CCFlipX ( );

	if ( pRet && pRet->initWithFlipX ( bFlipX ) )
	{
		pRet->autorelease ( );
	}
	else
	{
		CC_SAFE_DELETE ( pRet );
	}

	return pRet;
}
Ejemplo n.º 5
0
CCObject * CCFlipX::copyWithZone(CCZone *pZone) {
    CCZone *pNewZone = NULL;
    CCFlipX *pRet = NULL;

    if (pZone && pZone->m_pCopyObject) {
        pRet = (CCFlipX*) (pZone->m_pCopyObject);
    } else {
        pRet = new CCFlipX();
        pZone = pNewZone = new CCZone(pRet);
    }

    CCActionInstant::copyWithZone(pZone);
    pRet->initWithFlipX(m_bFlipX);
    CC_SAFE_DELETE(pNewZone);
    return pRet;
}