#include <CCScheduler.h>
Public Member Functions | |
TimerTargetSelector () | |
TimerTargetSelector () | |
bool | initWithSelector (Scheduler *scheduler, SEL_SCHEDULE selector, Ref *target, float seconds, unsigned int repeat, float delay) |
Initializes a timer with a target, a selector and an interval in seconds, repeat in number of times to repeat, delay in seconds. More... | |
var | initWithSelector ( var scheduler, var selector, var target, var seconds, var repeat, var delay) |
Initializes a timer with a target, a selector and an interval in seconds, repeat in number of times to repeat, delay in seconds. More... | |
local | initWithSelector ( local scheduler, local selector, local target, local seconds, local repeat, local delay) |
Initializes a timer with a target, a selector and an interval in seconds, repeat in number of times to repeat, delay in seconds. More... | |
SEL_SCHEDULE | getSelector () const |
virtual void | trigger () override |
var | trigger () |
local | trigger () |
virtual void | cancel () override |
local | cancel () |
Public Member Functions inherited from Timer | |
float | getInterval () const |
get interval in seconds More... | |
var | getInterval () |
get interval in seconds More... | |
local | getInterval () |
get interval in seconds More... | |
void | setInterval (float interval) |
set interval in seconds More... | |
var | setInterval ( var interval) |
set interval in seconds More... | |
local | setInterval ( local interval) |
set interval in seconds More... | |
void | setupTimerWithInterval (float seconds, unsigned int repeat, float delay) |
local | setupTimerWithInterval ( local seconds, local repeat, local delay) |
void | update (float dt) |
triggers the timer More... | |
var | update ( var dt) |
triggers the timer More... | |
local | update ( local dt) |
triggers the timer More... | |
Public Member Functions inherited from Ref | |
void | retain () |
Retains the ownership. More... | |
void | release () |
Releases the ownership immediately. More... | |
Ref * | autorelease () |
Releases the ownership sometime soon automatically. More... | |
unsigned int | getReferenceCount () const |
Returns the Ref's current reference count. More... | |
virtual | ~Ref () |
Protected Attributes | |
Ref * | _target |
SEL_SCHEDULE | _selector |
var | _selector |
local | _selector |
Protected Attributes inherited from Timer | |
Scheduler * | _scheduler |
float | _elapsed |
var | _elapsed |
local | _elapsed |
bool | _runForever |
var | _runForever |
local | _runForever |
bool | _useDelay |
var | _useDelay |
local | _useDelay |
unsigned int | _timesExecuted |
var | _timesExecuted |
local | _timesExecuted |
unsigned int | _repeat |
var | _repeat |
local | _repeat |
float | _delay |
var | _delay |
local | _delay |
float | _interval |
var | _interval |
local | _interval |
Protected Attributes inherited from Ref | |
unsigned int | _referenceCount |
count of references More... | |
Additional Inherited Members | |
Protected Member Functions inherited from Timer | |
Timer () | |
Protected Member Functions inherited from Ref | |
Ref () | |
Constructor. More... | |
var TimerTargetSelector | ( | ) |
local TimerTargetSelector | ( | ) |
|
overridevirtual |
Implements Timer.
|
overridevirtual |
Implements Timer.
|
overridevirtual |
Implements Timer.
|
inline |
|
inline |
|
inline |
bool initWithSelector | ( | Scheduler * | scheduler, |
SEL_SCHEDULE | selector, | ||
Ref * | target, | ||
float | seconds, | ||
unsigned int | repeat, | ||
float | delay | ||
) |
Initializes a timer with a target, a selector and an interval in seconds, repeat in number of times to repeat, delay in seconds.
var initWithSelector | ( | var | scheduler, |
var | selector, | ||
var | target, | ||
var | seconds, | ||
var | repeat, | ||
var | delay | ||
) |
Initializes a timer with a target, a selector and an interval in seconds, repeat in number of times to repeat, delay in seconds.
local initWithSelector | ( | local | scheduler, |
local | selector, | ||
local | target, | ||
local | seconds, | ||
local | repeat, | ||
local | delay | ||
) |
Initializes a timer with a target, a selector and an interval in seconds, repeat in number of times to repeat, delay in seconds.
|
overridevirtual |
Implements Timer.
|
overridevirtual |
Implements Timer.
|
overridevirtual |
Implements Timer.
|
protected |
|
protected |
|
protected |
|
protected |