Inherits from NSObject
Conforms to NSCopying
Declared in CCAnimation.h

Overview

CCAnimationFrame A frame of the animation. It contains information like:

- sprite frame name
- # of delay units.
- offset

Tasks

  •   spriteFrame

    CCSpriteFrameName to be used

    property
  •   delayUnits

    how many units of time the frame takes

    property
  •   userInfo

    A CCAnimationFrameDisplayedNotification notification will be broadcasted when the frame is displayed with this dictionary as UserInfo. If UserInfo is nil, then no notification will be broadcasted.

    property
  • – initWithSpriteFrame:delayUnits:userInfo:

    initializes the animation frame with a spriteframe, number of delay units and a notification user info

Properties

delayUnits

how many units of time the frame takes

@property (nonatomic, readwrite) float delayUnits

Declared In

CCAnimation.h

spriteFrame

CCSpriteFrameName to be used

@property (nonatomic, readwrite, retain) CCSpriteFrame *spriteFrame

Declared In

CCAnimation.h

userInfo

A CCAnimationFrameDisplayedNotification notification will be broadcasted when the frame is displayed with this dictionary as UserInfo. If UserInfo is nil, then no notification will be broadcasted.

@property (nonatomic, readwrite, retain) NSDictionary *userInfo

Declared In

CCAnimation.h

Instance Methods

initWithSpriteFrame:delayUnits:userInfo:

initializes the animation frame with a spriteframe, number of delay units and a notification user info

- (id)initWithSpriteFrame:(CCSpriteFrame *)spriteFrame delayUnits:(float)delayUnits userInfo:(NSDictionary *)userInfo

Declared In

CCAnimation.h