Light-weight timer
Class CCTimer
#include <Geode/cocos/CCScheduler.h>
classCCTimer:publiccocos2d::CCObject{ ... }
Examples0
Public static methods3
staticcocos2d::CCTimer*timerWithTarget(cocos2d::CCObject*pTarget,cocos2d::SEL_SCHEDULEpfnSelector)
Allocates a timer with a target and a selector.
staticcocos2d::CCTimer*timerWithTarget(cocos2d::CCObject*pTarget,cocos2d::SEL_SCHEDULEpfnSelector,floatfSeconds)
Allocates a timer with a target, a selector and an interval in seconds.
staticcocos2d::CCTimer*timerWithScriptHandler(intnHandler,floatfSeconds)
Allocates a timer with a script callback function and an interval in seconds.
Public member functions8
floatgetInterval()const
get interval in seconds
cocos2d::SEL_SCHEDULEgetSelector()const
No description provided
boolinitWithTarget(cocos2d::CCObject*pTarget,cocos2d::SEL_SCHEDULEpfnSelector)
Initializes a timer with a target and a selector.
boolinitWithTarget(cocos2d::CCObject*pTarget,cocos2d::SEL_SCHEDULEpfnSelector,floatfSeconds,uintnRepeat,floatfDelay)
Initializes a timer with a target, a selector and an interval in seconds, repeat in number of times to repeat, delay in seconds.
boolinitWithScriptHandler(intnHandler,floatfSeconds)
Initializes a timer with a script callback function and an interval in seconds.
intgetScriptHandler()
No description provided
Fields10
cocos2d::CCObject*m_pTarget;
No description provided
floatm_fElapsed;
No description provided
boolm_bRunForever;
No description provided
boolm_bUseDelay;
No description provided
uintm_uTimesExecuted;
No description provided
uintm_uRepeat;
No description provided
floatm_fDelay;
No description provided
floatm_fInterval;
No description provided
cocos2d::SEL_SCHEDULEm_pfnSelector;
No description provided
intm_nScriptHandler;
No description provided