CCTimer Class Reference
Inherits from | NSObject |
---|---|
Declared in | CCScheduler.h |
Overview
Contains information about a scheduled selector. Returned by [CCNode schedule:interval:] and related methods.
Note: New CCTimer objects can only be created with the schedule methods. CCTimer should not be subclassed.
Interval and Repeat Count
repeatCount
Number of times to run the selector again. First run does not count as a repeat.
@property (nonatomic, assign) NSUInteger repeatCount
Declared In
CCScheduler.h
repeatInterval
Amount of time to wait between selector calls. Defaults to the initial delay value.
@property (nonatomic, assign) CCTime repeatInterval
Discussion
CCTime
is a typedef for double
.
Declared In
CCScheduler.h
Time Info
deltaTime
Elapsed time since the last invocation.
@property (nonatomic, readonly) CCTime deltaTime
Discussion
CCTime
is a typedef for double
.
Declared In
CCScheduler.h
invokeTime
Absolute time the timer will invoke at.
@property (nonatomic, readonly) CCTime invokeTime
Discussion
CCTime
is a typedef for double
.
Declared In
CCScheduler.h