Public Member Functions | Static Public Member Functions | Properties

CCAnimate Class Reference

#import <CCIntervalAction.h>

Inherits CCIntervalAction.

Collaboration diagram for CCAnimate:
Collaboration graph
[legend]

List of all members.

Public Member Functions

(id) - initWithAnimation:
(id) - initWithAnimation:restoreOriginalFrame:
(id) - initWithDuration:animation:restoreOriginalFrame:

Static Public Member Functions

(id) + actionWithAnimation:
(id) + actionWithAnimation:restoreOriginalFrame:
(id) + actionWithDuration:animation:restoreOriginalFrame:

Properties

CCAnimationanimation

Detailed Description

Animates a sprite given the name of an Animation

Definition at line 378 of file CCIntervalAction.h.


Member Function Documentation

+ (id) actionWithAnimation: (CCAnimation *)  a  

creates the action with an Animation and will restore the original frame when the animation is over

+ (id) actionWithAnimation: (CCAnimation *)  a
restoreOriginalFrame: (BOOL)  b 

creates the action with an Animation

+ (id) actionWithDuration: (ccTime duration
animation: (CCAnimation *)  animation
restoreOriginalFrame: (BOOL)  b 

creates an action with a duration, animation and depending of the restoreOriginalFrame, it will restore the original frame or not. The 'delay' parameter of the animation will be overrided by the duration parameter.

Since:
v0.99.0
- (id) initWithAnimation: (CCAnimation *)  a  

initializes the action with an Animation and will restore the original frame when the animtion is over

- (id) initWithAnimation: (CCAnimation *)  a
restoreOriginalFrame: (BOOL)  b 

initializes the action with an Animation

- (id) initWithDuration: (ccTime duration
animation: (CCAnimation *)  animation
restoreOriginalFrame: (BOOL)  b 

initializes an action with a duration, animation and depending of the restoreOriginalFrame, it will restore the original frame or not. The 'delay' parameter of the animation will be overrided by the duration parameter.

Since:
v0.99.0

Property Documentation

- (CCAnimation*) animation [read, write, retain]

animation used for the animage

Definition at line 386 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