Class CCTimer

#include <Geode/cocos/CCScheduler.h>
classCCTimer:publiccocos2d::CCObject{ ... }

Light-weight timer

Examples0
Public static methods3
staticcocos2d::CCTimer*timerWithTarget(,)

Allocates a timer with a target and a selector.

staticcocos2d::CCTimer*timerWithTarget(,,
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

voidsetInterval(
floatfInterval
)

set interval in seconds

cocos2d::SEL_SCHEDULEgetSelector()const
No description provided
boolinitWithTarget(,)

Initializes a timer with a target and a selector.

boolinitWithTarget(,,
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.

virtualvoidupdate()

triggers the timer

intgetScriptHandler()
No description provided
Fields0
Protected member functions0
Protected fields10
;
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
;
No description provided
intm_nScriptHandler
;
No description provided