Light-weight timer.
More...
#include <CCScheduler.h>
|
| CCTimer (void) |
| ctor () |
float | getInterval (void) const |
| get interval in seconds More...
|
|
void | setInterval (float fInterval) |
| set interval in seconds More...
|
|
SEL_SCHEDULE | getSelector () const |
bool | initWithTarget (CCObject *pTarget, SEL_SCHEDULE pfnSelector) |
| Initializes a timer with a target and a selector. More...
|
|
var | initWithTarget ( var pTarget, var pfnSelector) |
| Initializes a timer with a target and a selector. More...
|
|
bool | initWithTarget (CCObject *pTarget, SEL_SCHEDULE pfnSelector, float fSeconds, unsigned int nRepeat, float fDelay) |
| Initializes a timer with a target, a selector and an interval in seconds, repeat in number of times to repeat, delay in seconds. More...
|
|
bool | initWithScriptHandler (int nHandler, float fSeconds) |
| Initializes a timer with a script callback function and an interval in seconds. More...
|
|
void | update (float dt) |
| triggers the timer More...
|
|
int | getScriptHandler () |
var | getScriptHandler () |
| CCObject (void) |
virtual | ~CCObject (void) |
void | release (void) |
void | retain (void) |
CCObject * | autorelease (void) |
CCObject * | copy (void) |
bool | isSingleReference (void) const |
unsigned int | retainCount (void) const |
virtual bool | isEqual (const CCObject *pObject) |
virtual void | acceptVisitor (CCDataVisitor &visitor) |
virtual CCObject * | copyWithZone (CCZone *pZone) |
float getInterval |
( |
void |
) | |
const |
bool initWithScriptHandler |
( |
int |
nHandler, |
|
|
float |
fSeconds |
|
) |
| |
Initializes a timer with a script callback function and an interval in seconds.
var initWithScriptHandler |
( |
var |
nHandler, |
|
|
var |
fSeconds |
|
) |
| |
Initializes a timer with a script callback function and an interval in seconds.
local initWithScriptHandler |
( |
local |
nHandler, |
|
|
local |
fSeconds |
|
) |
| |
Initializes a timer with a script callback function and an interval in seconds.
Initializes a timer with a target and a selector.
var initWithTarget |
( |
var |
pTarget, |
|
|
var |
pfnSelector |
|
) |
| |
Initializes a timer with a target and a selector.
bool initWithTarget |
( |
CCObject * |
pTarget, |
|
|
SEL_SCHEDULE |
pfnSelector, |
|
|
float |
fSeconds, |
|
|
unsigned int |
nRepeat, |
|
|
float |
fDelay |
|
) |
| |
Initializes a timer with a target, a selector and an interval in seconds, repeat in number of times to repeat, delay in seconds.
var initWithTarget |
( |
var |
pTarget, |
|
|
var |
pfnSelector, |
|
|
var |
fSeconds, |
|
|
var |
nRepeat, |
|
|
var |
fDelay |
|
) |
| |
Initializes a timer with a target, a selector and an interval in seconds, repeat in number of times to repeat, delay in seconds.
void setInterval |
( |
float |
fInterval) | |
|
var setInterval |
( |
var |
fInterval) | |
|
local setInterval |
( |
local |
fInterval) | |
|
static CCTimer*
timerWithScriptHandler |
( |
int |
nHandler, |
|
|
float |
fSeconds |
|
) |
| |
|
static |
Allocates a timer with a script callback function and an interval in seconds.
var timerWithScriptHandler |
( |
var |
nHandler, |
|
|
var |
fSeconds |
|
) |
| |
|
static |
Allocates a timer with a script callback function and an interval in seconds.
local timerWithScriptHandler |
( |
local |
nHandler, |
|
|
local |
fSeconds |
|
) |
| |
|
static |
Allocates a timer with a script callback function and an interval in seconds.
Allocates a timer with a target and a selector.
var timerWithTarget |
( |
var |
pTarget, |
|
|
var |
pfnSelector |
|
) |
| |
|
static |
Allocates a timer with a target and a selector.
Allocates a timer with a target, a selector and an interval in seconds.
var timerWithTarget |
( |
var |
pTarget, |
|
|
var |
pfnSelector, |
|
|
var |
fSeconds |
|
) |
| |
|
static |
Allocates a timer with a target, a selector and an interval in seconds.
triggers the timer
Reimplemented from CCObject.
triggers the timer
Reimplemented from CCObject.
triggers the timer
Reimplemented from CCObject.
unsigned int m_uTimesExecuted |
|
protected |
The documentation for this class was generated from the following file: