axmol/tools/tolua++/CCScheduler.pkg

33 lines
949 B
Plaintext
Raw Normal View History

2011-06-14 14:31:25 +08:00
class CCTimer : public CCObject
{
float getInterval(void);
void setInterval(float fInterval);
void update(float dt);
static CCTimer* timerWithScriptHandler(LUA_FUNCTION funcID, float fSeconds);
2011-06-14 14:31:25 +08:00
};
class CCScheduler : public CCObject
{
float getTimeScale(void);
void setTimeScale(float fTimeScale);
2011-06-14 14:31:25 +08:00
unsigned int scheduleScriptFunc(LUA_FUNCTION funcID, float fInterval, bool bPaused);
2012-02-02 15:58:10 +08:00
void unscheduleScriptEntry(unsigned int uScheduleScriptEntryID);
2011-06-14 14:31:25 +08:00
2012-02-02 15:58:10 +08:00
void scheduleUpdateForTarget(CCObject *pTarget, int nPriority, bool bPaused);
void unscheduleUpdateForTarget(CCObject *pTarget);
2011-06-14 14:31:25 +08:00
2012-02-02 15:58:10 +08:00
void unscheduleAllSelectorsForTarget(CCObject *pTarget);
2012-02-02 14:26:38 +08:00
void unscheduleAllSelectors(void);
2011-06-14 14:31:25 +08:00
void unscheduleAllSelectorsWithMinPriority(int nMinPriority);
2012-02-02 15:58:10 +08:00
void pauseTarget(CCObject *pTarget);
void resumeTarget(CCObject *pTarget);
bool isTargetPaused(CCObject *pTarget);
2011-06-14 14:31:25 +08:00
};