Ejemplo n.º 1
0
CCTouchScriptHandlerEntry* CCTouchScriptHandlerEntry::create(int nHandler,
                                                             bool bIsMultiTouches,
                                                             int nPriority,
                                                             bool bSwallowsTouches)
{
    CCTouchScriptHandlerEntry* pEntry = new CCTouchScriptHandlerEntry(nHandler);
    pEntry->init(bIsMultiTouches, nPriority, bSwallowsTouches);
    pEntry->autorelease();
    return pEntry;
}
CCTouchScriptHandlerEntry* CCTouchScriptHandlerEntry::create ( KDint nHandler, KDbool bIsMultiTouches, KDint nPriority, KDbool bSwallowsTouches )
{
    CCTouchScriptHandlerEntry*	pEntry = new CCTouchScriptHandlerEntry ( nHandler );

	if ( pEntry && pEntry->init ( bIsMultiTouches, nPriority, bSwallowsTouches ) )
	{
		pEntry->autorelease ( );
	}
	else
	{
		CC_SAFE_DELETE ( pEntry );
	}

    return pEntry;
}