示例#1
0
	//
	// FlipY
	//
	CCFlipY * CCFlipY::actionWithFlipY(bool y)
	{
		CCFlipY *pRet = new CCFlipY();
		pRet->initWithFlipY(y);
		pRet->autorelease();
		return pRet;
	}
示例#2
0
//
// FlipY
//
CCFlipY * CCFlipY::actionWithFlipY(bool y) {
	CCFlipY *pRet = new CCFlipY();

	if (pRet && pRet->initWithFlipY(y)) {
		pRet->autorelease();
		return pRet;
	}

	CC_SAFE_DELETE(pRet);
	return NULL;
}
CCFlipY * CCFlipY::create(bool y)
{
    CCFlipY *pRet = new CCFlipY();

    if (pRet && pRet->initWithFlipY(y)) {
        CC_SAFE_AUTORELEASE(pRet);
        return pRet;
    }

    CC_SAFE_DELETE(pRet);
    return NULL;
}
CCFlipY* CCFlipY::create ( KDbool bFlipY )
{
	CCFlipY*  pRet = new CCFlipY ( );

	if ( pRet && pRet->initWithFlipY ( bFlipY ) )
	{
		pRet->autorelease ( );
	}
	else
	{
		CC_SAFE_DELETE ( pRet );
	}

	return pRet;
}
CCObject* CCFlipY::copyWithZone(CCZone *pZone) {
    CCZone *pNewZone = NULL;
    CCFlipY *pRet = NULL;

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

    CCActionInstant::copyWithZone(pZone);
    pRet->initWithFlipY(m_bFlipY);
    CC_SAFE_DELETE(pNewZone);
    return pRet;
}