Class CCAnimationFrame

#include <Geode/cocos/sprite_nodes/CCAnimation.h>
classCCAnimationFrame:publiccocos2d::CCObject{ ... }

Since v2.0

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

  • sprite frame name
  • of delay units.

  • offset
Examples0
Public static methods0
Public member functions8
virtualcocos2d::CCObject*copyWithZone()
No description provided
boolinitWithSpriteFrame(,
floatdelayUnits
,)

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

cocos2d::CCSpriteFrame*getSpriteFrame()const

CCSpriteFrameName to be used

voidsetSpriteFrame()

CCSpriteFrameName to be used

floatgetDelayUnits()const

how many units of time the frame takes

voidsetDelayUnits()

how many units of time the frame takes

cocos2d::CCDictionary*getUserInfo()const

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

voidsetUserInfo()

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

Fields3
;

CCSpriteFrameName to be used

floatm_fDelayUnits
;

how many units of time the frame takes

;

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

Protected member functions0
Protected fields0
Derived classes0