axmol/tools/tolua++/CCScheduler.pkg

33 lines
949 B
Plaintext

class CCTimer : public CCObject
{
float getInterval(void);
void setInterval(float fInterval);
void update(float dt);
static CCTimer* timerWithScriptHandler(LUA_FUNCTION funcID, float fSeconds);
};
class CCScheduler : public CCObject
{
float getTimeScale(void);
void setTimeScale(float fTimeScale);
unsigned int scheduleScriptFunc(LUA_FUNCTION funcID, float fInterval, bool bPaused);
void unscheduleScriptEntry(unsigned int uScheduleScriptEntryID);
void scheduleUpdateForTarget(CCObject *pTarget, int nPriority, bool bPaused);
void unscheduleUpdateForTarget(CCObject *pTarget);
void unscheduleAllSelectorsForTarget(CCObject *pTarget);
void unscheduleAllSelectors(void);
void unscheduleAllSelectorsWithMinPriority(int nMinPriority);
void pauseTarget(CCObject *pTarget);
void resumeTarget(CCObject *pTarget);
bool isTargetPaused(CCObject *pTarget);
};