#import <CCIntervalAction.h>
Inherits CCFiniteTimeAction.
Inherited by CCAccelAmplitude, CCAccelDeccelAmplitude, CCAnimate, CCBezierBy, CCBlink, CCCameraAction, CCDeccelAmplitude, CCDelayTime, CCEaseAction, CCFadeIn, CCFadeOut, CCFadeTo, CCGridAction, CCJumpBy, CCMoveTo, CCProgressFromTo, CCProgressTo, CCPropertyAction, CCRepeat, CCReverseTime, CCRotateBy, CCRotateTo, CCScaleTo, CCSequence, CCSpawn, CCTintBy, and CCTintTo.

Public Member Functions | |
| (id) | - initWithDuration: |
| (BOOL) | - isDone |
| (CCIntervalAction *) | - reverse |
Static Public Member Functions | |
| (id) | + actionWithDuration: |
Properties | |
| ccTime | elapsed |
An interval action is an action that takes place within a certain period of time. It has an start time, and a finish time. The finish time is the parameter duration plus the start time.
These CCIntervalAction actions have some interesting properties, like:
For example, you can simulate a Ping Pong effect running the action normally and then running it again in Reverse mode.
Example:
CCAction * pingPongAction = [CCSequence actions: action, [action reverse], nil];
Definition at line 49 of file CCIntervalAction.h.
| - (BOOL) isDone |
returns YES if the action has finished
Implements CCAction.
| - (CCIntervalAction*) reverse |
returns a reversed action
Implements CCFiniteTimeAction.
- (ccTime) elapsed [read, assign] |
how many seconds had elapsed since the actions started to run.
Definition at line 52 of file CCIntervalAction.h.