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 repeatCountDeclared In
CCScheduler.h
repeatInterval
Amount of time to wait between selector calls. Defaults to the initial delay value.
@property (nonatomic, assign) CCTime repeatIntervalDiscussion
CCTime is a typedef for double.
Declared In
CCScheduler.h
Time Info
deltaTime
Elapsed time since the last invocation.
@property (nonatomic, readonly) CCTime deltaTimeDiscussion
CCTime is a typedef for double.
Declared In
CCScheduler.h
invokeTime
Absolute time the timer will invoke at.
@property (nonatomic, readonly) CCTime invokeTimeDiscussion
CCTime is a typedef for double.
Declared In
CCScheduler.h