#import "CCActionInterval.h"
Inherits CCActionInterval.
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 | |
CCAnimation * | animation |
Animates a sprite given the name of an Animation
+ (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.
- (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.
- (CCAnimation*) animation [read, write, retain] |
animation used for the animage