예제 #1
0
CCSchedulerScriptHandlerEntry* CCSchedulerScriptHandlerEntry::create(int nHandler, float fInterval, bool bPaused)
{
	CCSchedulerScriptHandlerEntry* pEntry = new CCSchedulerScriptHandlerEntry(nHandler);
	pEntry->init(fInterval, bPaused);
	pEntry->autorelease();
	return pEntry;
}
예제 #2
0
NS_CC_BEGIN

CCSchedulerScriptHandlerEntry* CCSchedulerScriptHandlerEntry::entryWithHandler(int nHandler, ccTime fInterval, bool bPaused)
{
    CCSchedulerScriptHandlerEntry* pEntry = new CCSchedulerScriptHandlerEntry();
    pEntry->initWithHandler(nHandler, fInterval, bPaused);
    pEntry->autorelease();
    return pEntry;
}
CCSchedulerScriptHandlerEntry* CCSchedulerScriptHandlerEntry::create ( KDint nHandler, KDfloat fInterval, KDbool bPaused )
{
    CCSchedulerScriptHandlerEntry*  pEntry = new CCSchedulerScriptHandlerEntry ( nHandler );

	if ( pEntry && pEntry->init ( fInterval, bPaused ) )
	{
		pEntry->autorelease ( );
	}
	else
	{
		CC_SAFE_DELETE ( pEntry );
	}
    
    return pEntry;
}