cocos2d-iphone  1.0.1
Improved Cocos2D API Reference (iOS version) for Kobold2D developers
CCTimer Interface Reference

#include <CCScheduler.h>

List of all members.

Public Member Functions

id initWithTarget:selector: (id t,[selector] SEL s)
id initWithTarget:selector:interval: (id t,[selector] SEL s,[interval] ccTime seconds)
void update: (ccTime dt)

Static Public Member Functions

id timerWithTarget:selector: (id t,[selector] SEL s)
id timerWithTarget:selector:interval: (id t,[selector] SEL s,[interval] ccTime seconds)

Public Attributes

SEL selector

Protected Attributes

id target
TICK_IMP impMethod
ccTime elapsed

Properties

ccTime interval

Detailed Description

Light weight timer


Member Function Documentation

id CCTimer::initWithTarget:selector: ( id  t,
[selector] SEL  s 
) [virtual]

Initializes a timer with a target and a selector.

id CCTimer::initWithTarget:selector:interval: ( id  t,
[selector] SEL  s,
[interval] ccTime  seconds 
) [virtual]

Initializes a timer with a target, a selector and an interval in seconds.

id CCTimer::timerWithTarget:selector: ( id  t,
[selector] SEL  s 
) [static, virtual]

Allocates a timer with a target and a selector.

id CCTimer::timerWithTarget:selector:interval: ( id  t,
[selector] SEL  s,
[interval] ccTime  seconds 
) [static, virtual]

Allocates a timer with a target, a selector and an interval in seconds.

void CCTimer::update: ( ccTime  dt) [virtual]

triggers the timer


Property Documentation

ccTime CCTimer::interval [read, write, assign]

interval in seconds


The documentation for this interface was generated from the following file: