CCAnimation
CCAnimation
Cocos2DInheritance: System.Object
Implements: Cocos2D.ICCCopyable
Constructors
CCAnimation()
CCAnimation()()
CCAnimation(CCSpriteSheet, float)
CCAnimation(CCSpriteSheet, float)(Cocos2D.CCSpriteSheet cs, System.Single delay)
Parameters:
cs
(Cocos2D.CCSpriteSheet)delay
(System.Single)CCAnimation(CCSpriteSheet, string[], float)
CCAnimation(CCSpriteSheet, string[], float)(Cocos2D.CCSpriteSheet cs, System.String[] frames, System.Single delay)
Parameters:
cs
(Cocos2D.CCSpriteSheet)frames
(System.String[])delay
(System.Single)CCAnimation(List, float, uint)
CCAnimation(List, float, uint)(System.Collections.Generic.ListCocos2D.CCAnimationFrame arrayOfAnimationFrameNames, System.Single delayPerUnit, System.UInt32 loops)
Parameters:
arrayOfAnimationFrameNames
(System.Collections.Generic.ListCocos2D.CCAnimationFrame)delayPerUnit
(System.Single)loops
(System.UInt32)CCAnimation(List, float)
CCAnimation(List, float)(System.Collections.Generic.ListCocos2D.CCSpriteFrame frames, System.Single delay)
Parameters:
frames
(System.Collections.Generic.ListCocos2D.CCSpriteFrame)delay
(System.Single)Fields
m_bRestoreOriginalFrame(System.Boolean)
m_fDelayPerUnit(System.Single)
m_fTotalDelayUnits(System.Single)
m_pFrames(System.Collections.Generic.ListCocos2D.CCAnimationFrame)
m_uLoops(System.UInt32)
Properties
DelayPerUnit(System.Single)
Duration(System.Single)
Frames(System.Collections.Generic.ListCocos2D.CCAnimationFrame)
Loops(System.UInt32)
RestoreOriginalFrame(System.Boolean)
TotalDelayUnits(System.Single)
Methods
AddSprite(CCSprite)
AddSprite(CCSprite)(Cocos2D.CCSprite sprite)
Parameters:
sprite
(Cocos2D.CCSprite)AddSpriteFrame(CCSpriteFrame)
AddSpriteFrame(CCSpriteFrame)(Cocos2D.CCSpriteFrame pFrame)
Parameters:
pFrame
(Cocos2D.CCSpriteFrame)AddSpriteFrameWithFileName(string)
AddSpriteFrameWithFileName(string)(System.String pszFileName)
Parameters:
pszFileName
(System.String)AddSpriteFrameWithTexture(CCTexture2D, CCRect)
AddSpriteFrameWithTexture(CCTexture2D, CCRect)(Cocos2D.CCTexture2D pobTexture, Cocos2D.CCRect rect)
Parameters:
pobTexture
(Cocos2D.CCTexture2D)rect
(Cocos2D.CCRect)Copy()
Cocos2D.CCAnimation Copy()()
Returns:
Cocos2D.CCAnimation
Copy(ICCCopyable)
System.Object Copy(ICCCopyable)(Cocos2D.ICCCopyable pZone)
Parameters:
pZone
(Cocos2D.ICCCopyable)Returns:
System.Object
Example
InitWithAnimationFrames(List, float, uint)
System.Boolean InitWithAnimationFrames(List, float, uint)(System.Collections.Generic.ListCocos2D.CCAnimationFrame arrayOfAnimationFrames, System.Single delayPerUnit, System.UInt32 loops)
Parameters:
arrayOfAnimationFrames
(System.Collections.Generic.ListCocos2D.CCAnimationFrame)delayPerUnit
(System.Single)loops
(System.UInt32)Returns:
System.Boolean
InitWithSpriteFrames(List, float)
System.Boolean InitWithSpriteFrames(List, float)(System.Collections.Generic.ListCocos2D.CCSpriteFrame pFrames, System.Single delay)
Parameters:
pFrames
(System.Collections.Generic.ListCocos2D.CCSpriteFrame)delay
(System.Single)Returns:
System.Boolean