CCSpeed
CCSpeed
Cocos2DInheritance: System.Object → Cocos2D.CCAction
Implements: Cocos2D.ICCCopyable
Constructors
CCSpeed(CCActionInterval, float)
CCSpeed(CCActionInterval, float)(Cocos2D.CCActionInterval action, System.Single fRate)
Parameters:
action
(Cocos2D.CCActionInterval)fRate
(System.Single)CCSpeed(CCSpeed)
CCSpeed(CCSpeed)(Cocos2D.CCSpeed speed)
Parameters:
speed
(Cocos2D.CCSpeed)Fields
m_fSpeed(System.Single)
m_pInnerAction(Cocos2D.CCActionInterval)
Properties
IsDone(System.Boolean)
Speed(System.Single)
Methods
Copy(ICCCopyable)
System.Object Copy(ICCCopyable)(Cocos2D.ICCCopyable zone)
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:
zone
(Cocos2D.ICCCopyable)Returns:
System.Object
Example
InitWithAction(CCActionInterval, float)
System.Boolean InitWithAction(CCActionInterval, float)(Cocos2D.CCActionInterval action, System.Single fRate)
Parameters:
action
(Cocos2D.CCActionInterval)fRate
(System.Single)Returns:
System.Boolean
Reverse()
Cocos2D.CCActionInterval Reverse()()
Returns:
Cocos2D.CCActionInterval
StartWithTarget(CCNode)
StartWithTarget(CCNode)(Cocos2D.CCNode target)
Parameters:
target
(Cocos2D.CCNode)Example
Step(float)
Step(float)(System.Single dt)
Parameters:
dt
(System.Single)Example
Stop()
Stop()()
Example