示例#1
0
CCTouchScriptHandlerEntry* CCTouchScriptHandlerEntry::entryWithHandler(int nHandler, bool bIsMultiTouches, int nPriority, bool bSwallowsTouches)
{
    CCTouchScriptHandlerEntry* pEntry = new CCTouchScriptHandlerEntry();
    pEntry->initWithHandler(nHandler, 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;
}