2011-06-14 14:31:25 +08:00
|
|
|
|
|
|
|
class CCTimer : public CCObject
|
|
|
|
{
|
2012-06-15 10:51:53 +08:00
|
|
|
float getInterval(void);
|
|
|
|
void setInterval(float fInterval);
|
|
|
|
void update(float dt);
|
2012-08-10 18:14:04 +08:00
|
|
|
|
|
|
|
static CCTimer* timerWithScriptHandler(LUA_FUNCTION funcID, float fSeconds);
|
2011-06-14 14:31:25 +08:00
|
|
|
};
|
|
|
|
|
|
|
|
class CCScheduler : public CCObject
|
|
|
|
{
|
2012-06-15 10:51:53 +08:00
|
|
|
float getTimeScale(void);
|
|
|
|
void setTimeScale(float fTimeScale);
|
2011-06-14 14:31:25 +08:00
|
|
|
|
|
|
|
|
2012-06-15 10:51:53 +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
|
|
|
};
|