Skip to main content

CCProgressFromTo

CCProgressFromTo

Cocos2D

Inheritance: System.Object → Cocos2D.CCAction → Cocos2D.CCFiniteTimeAction → Cocos2D.CCActionInterval

Implements: Cocos2D.ICCCopyable

Constructors

CCProgressFromTo()

CCProgressFromTo()()

CCProgressFromTo(float, float, float)

CCProgressFromTo(float, float, float)(System.Single duration, System.Single fFromPercentage, System.Single fToPercentage)

Creates and initializes the action with a duration, a "from" percentage and a "to" percentage

Parameters:
duration (System.Single)
fFromPercentage (System.Single)
fToPercentage (System.Single)
Example

Fields

m_fFrom(System.Single)
m_fTo(System.Single)

Methods

Copy(ICCCopyable)

System.Object Copy(ICCCopyable)(Cocos2D.ICCCopyable pZone)

Copy/Duplicatae protocol for making a self copy of this object instance. If null is given as the parameter then selfie of this instance is returned. Otherwise, the state of this instance is copied to the given target.

Parameters:
pZone (Cocos2D.ICCCopyable)
Returns:
System.Object
Example

InitWithDuration(float, float, float)

System.Boolean InitWithDuration(float, float, float)(System.Single duration, System.Single fFromPercentage, System.Single fToPercentage)

Initializes the action with a duration, a "from" percentage and a "to" percentage

Parameters:
duration (System.Single)
fFromPercentage (System.Single)
fToPercentage (System.Single)
Returns:
System.Boolean
Example

Reverse()

Cocos2D.CCFiniteTimeAction Reverse()()

Does nothing by default.

Returns:
Cocos2D.CCFiniteTimeAction
Example

StartWithTarget(CCNode)

StartWithTarget(CCNode)(Cocos2D.CCNode target)
Parameters:
target (Cocos2D.CCNode)
Example

Update(float)

Update(float)(System.Single time)
Parameters:
time (System.Single)
Example