2011-06-14 14:31:25 +08:00
|
|
|
|
|
|
|
class CCTimer : public CCObject
|
|
|
|
{
|
2011-11-09 23:23:47 +08:00
|
|
|
ccTime getInterval(void);
|
|
|
|
void setInterval(ccTime fInterval);
|
|
|
|
void update(ccTime dt);
|
2011-06-14 14:31:25 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class CCScheduler : public CCObject
|
|
|
|
{
|
2011-11-09 23:23:47 +08:00
|
|
|
ccTime getTimeScale(void);
|
|
|
|
void setTimeScale(ccTime fTimeScale);
|
2011-06-14 14:31:25 +08:00
|
|
|
|
2012-01-21 01:29:30 +08:00
|
|
|
|
2012-01-08 21:03:16 +08:00
|
|
|
unsigned int scheduleScriptFunc(LUA_FUNCTION funcID, ccTime fInterval, bool bPaused);
|
|
|
|
void unscheduleScriptEntry(unsigned int uScheduleScriptEntryID);
|
2012-01-21 01:29:30 +08:00
|
|
|
|
2012-01-08 21:03:16 +08:00
|
|
|
void scheduleUpdateForTarget(CCObject *pTarget, int nPriority, bool bPaused);
|
|
|
|
void unscheduleUpdateForTarget(CCObject *pTarget);
|
2012-01-21 01:29:30 +08:00
|
|
|
|
2012-01-08 21:03:16 +08:00
|
|
|
void unscheduleAllSelectorsForTarget(CCObject *pTarget);
|
2011-11-09 23:23:47 +08:00
|
|
|
void unscheduleAllSelectors(void);
|
2011-06-14 14:31:25 +08:00
|
|
|
|
2012-01-08 21:03:16 +08:00
|
|
|
void pauseTarget(CCObject *pTarget);
|
|
|
|
void resumeTarget(CCObject *pTarget);
|
|
|
|
bool isTargetPaused(CCObject *pTarget);
|
2012-01-21 01:29:30 +08:00
|
|
|
|
2011-11-09 23:23:47 +08:00
|
|
|
static CCScheduler* sharedScheduler(void);
|
2011-06-14 14:31:25 +08:00
|
|
|
};
|