Public Member Functions | Static Public Member Functions | Properties

CCAnimate Class Reference

#import "CCActionInterval.h"

Inherits CCActionInterval.

Collaboration diagram for CCAnimate:
[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


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


The documentation for this class was generated from the following file: