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

virtualcocos2d::CCSpriteFrame*getSpriteFrame()const

CCSpriteFrameName to be used

virtualvoidsetSpriteFrame()

CCSpriteFrameName to be used

virtualfloatgetDelayUnits()const

how many units of time the frame takes

virtualvoidsetDelayUnits()

how many units of time the frame takes

virtualcocos2d::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.

virtualvoidsetUserInfo()

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.

Fields0
Protected member functions0
Protected fields1
floatm_fDelayUnits
;

how many units of time the frame takes