Inherits from NSObject
Declared in CCScheduler.h

Overview

Light weight timer

Tasks

Other Methods

Other Methods

Properties

interval

interval in seconds

@property (nonatomic, readwrite, assign) ccTime interval

Declared In

CCScheduler.h

Class Methods

timerWithTarget:selector:

Allocates a timer with a target and a selector.

+ (id)timerWithTarget:(id)t selector:(SEL)s

Declared In

CCScheduler.h

timerWithTarget:selector:interval:

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

+ (id)timerWithTarget:(id)t selector:(SEL)s interval:(ccTime)seconds

Declared In

CCScheduler.h

Instance Methods

initWithTarget:selector:

Initializes a timer with a target and a selector.

- (id)initWithTarget:(id)t selector:(SEL)s

Declared In

CCScheduler.h

initWithTarget:selector:interval:

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

- (id)initWithTarget:(id)t selector:(SEL)s interval:(ccTime)seconds

Declared In

CCScheduler.h

update:

triggers the timer

- (void)update:(ccTime)dt

Declared In

CCScheduler.h