cocos2d-iphone  2.1
Improved Cocos2D API Reference (iOS version) for www.kobold2d.com developers
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Properties Defines
CCAnimate Class Reference

#import <CCActionInterval.h>

+ Inheritance diagram for CCAnimate:
+ Collaboration diagram for CCAnimate:

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:

Protected Attributes

NSMutableArray * _splitTimes
NSInteger _nextFrame
CCAnimation_animation
id _origFrame
NSUInteger _executedLoops

Properties

CCAnimationanimation

Detailed Description

Animates a sprite given the name of an Animation


Member Function Documentation

+ (id) actionWithAnimation: (CCAnimation *)  animation

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

- (id) initWithAnimation: (CCAnimation *)  animation

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


Property Documentation

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

animation used for the image


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