Public Member Functions | Static Public Member Functions | Properties

CCIntervalAction Class Reference

#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.

Collaboration diagram for CCIntervalAction:
Collaboration graph
[legend]

List of all members.

Public Member Functions

(id) - initWithDuration:
(BOOL) - isDone
(CCIntervalAction *) - reverse

Static Public Member Functions

(id) + actionWithDuration:

Properties

ccTime elapsed

Detailed Description

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.


Member Function Documentation

+ (id) actionWithDuration: (ccTime d  

creates the action

Implemented in CCFlipX3D.

- (id) initWithDuration: (ccTime d  

initializes the action

Implemented in CCFlipX3D.

- (BOOL) isDone  

returns YES if the action has finished

Implements CCAction.

- (CCIntervalAction*) reverse  

returns a reversed action

Implements CCFiniteTimeAction.


Property Documentation

- (ccTime) elapsed [read, assign]

how many seconds had elapsed since the actions started to run.

Definition at line 52 of file CCIntervalAction.h.


The documentation for this class was generated from the following file:
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Defines

cocos2d for iPhone 0.99.4 API Reference - Generated using Doxygen 1.7.1