#include <CCScheduler.h>
|
| TimerTargetCallback () |
bool | initWithCallback (Scheduler *scheduler, const ccSchedulerFunc &callback, void *target, const std::string &key, float seconds, unsigned int repeat, float delay) |
| Initializes a timer with a target, a lambda and an interval in seconds, repeat in number of times to repeat, delay in seconds. More...
|
|
const ccSchedulerFunc & | getCallback () const |
const std::string & | getKey () const |
virtual void | trigger () override |
virtual void | cancel () override |
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...
|
|
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...
|
|
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 () |
const std::string& getKey |
( |
| ) |
const |
|
inline |
bool initWithCallback |
( |
Scheduler * |
scheduler, |
|
|
const ccSchedulerFunc & |
callback, |
|
|
void * |
target, |
|
|
const std::string & |
key, |
|
|
float |
seconds, |
|
|
unsigned int |
repeat, |
|
|
float |
delay |
|
) |
| |
Initializes a timer with a target, a lambda and an interval in seconds, repeat in number of times to repeat, delay in seconds.
The documentation for this class was generated from the following file: