Exemple #1
0
	//
	// FlipY
	//
	CCFlipY * CCFlipY::actionWithFlipY(bool y)
	{
		CCFlipY *pRet = new CCFlipY();
		pRet->initWithFlipY(y);
		pRet->autorelease();
		return pRet;
	}
Exemple #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 ( KDbool bFlipY )
{
	CCFlipY*  pRet = new CCFlipY ( );

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

	return pRet;
}