mirror of https://github.com/axmolengine/axmol.git
30 lines
891 B
Plaintext
30 lines
891 B
Plaintext
|
|
class CCTimer : public CCObject
|
|
{
|
|
ccTime getInterval(void);
|
|
void setInterval(ccTime fInterval);
|
|
void update(ccTime dt);
|
|
};
|
|
|
|
class CCScheduler : public CCObject
|
|
{
|
|
ccTime getTimeScale(void);
|
|
void setTimeScale(ccTime fTimeScale);
|
|
|
|
|
|
int scheduleScriptFunc(LUA_FUNCTION functionRefID, ccTime fInterval, bool bPaused);
|
|
void unscheduleScriptFunc(int scheduleEntryID);
|
|
|
|
void scheduleUpdateForTarget(SelectorProtocol *pTarget, int nPriority, bool bPaused);
|
|
void unscheduleUpdateForTarget(const SelectorProtocol *pTarget);
|
|
|
|
void unscheduleAllSelectorsForTarget(SelectorProtocol *pTarget);
|
|
void unscheduleAllSelectors(void);
|
|
|
|
void pauseTarget(SelectorProtocol *pTarget);
|
|
void resumeTarget(SelectorProtocol *pTarget);
|
|
bool isTargetPaused(SelectorProtocol *pTarget);
|
|
|
|
static CCScheduler* sharedScheduler(void);
|
|
};
|