Exemple #1
0
	//
	// Place
	//
	CCPlace * CCPlace::actionWithPosition(CCPoint pos)
	{
		CCPlace *pRet = new CCPlace();
		pRet->initWithPosition(pos);
		pRet->autorelease();
		return pRet;
	}
Exemple #2
0
//
// Place
//
CCPlace* CCPlace::actionWithPosition(const CCPoint& pos) {
	CCPlace *pRet = new CCPlace();

	if (pRet && pRet->initWithPosition(pos)) {
		pRet->autorelease();
		return pRet;
	}

	CC_SAFE_DELETE(pRet);
	return NULL;
}
CCPlace* CCPlace::create ( const CCPoint& tPosition )
{
	CCPlace*  pRet = new CCPlace ( );
	
	if ( pRet && pRet->initWithPosition ( tPosition ) )
	{
		pRet->autorelease ( );
	}
	else
	{
		CC_SAFE_DELETE ( pRet );
	}
	
	return pRet;
}