Base class for Action objects.
virtual Action* clone |
( |
) | |
const |
|
pure virtual |
returns a clone of action
Implements Clonable.
Implemented in TargetedAction, EaseCubicActionInOut, Animate, EaseCubicActionOut, ReverseTime, EaseCubicActionIn, EaseCircleActionInOut, DelayTime, EaseCircleActionOut, TintBy, EaseCircleActionIn, EaseQuinticActionInOut, TintTo, EaseQuinticActionOut, FadeOut, EaseQuinticActionIn, FadeIn, EaseQuarticActionInOut, FadeTo, EaseQuarticActionOut, EaseQuarticActionIn, Blink, EaseQuadraticActionInOut, ScaleBy, EaseQuadraticActionOut, EaseQuadraticActionIn, ScaleTo, EaseBezierAction, BezierTo, EaseBackInOut, BezierBy, EaseBackOut, EaseBackIn, JumpTo, EaseBounceInOut, JumpBy, EaseBounceOut, SkewBy, EaseBounceIn, SkewTo, EaseBounce, __CCCallFuncO, EaseElasticInOut, MoveTo, __CCCallFuncND, EaseElasticOut, MoveBy, EaseElasticIn, CallFuncN, SplitCols, RotateBy, EaseElastic, SplitRows, Twirl, JumpTiles3D, EaseSineInOut, RotateTo, CallFunc, ReuseGrid, EaseSineOut, CatmullRomBy, CCBEaseInstant, StopGrid, Waves, WavesTiles3D, Spawn, CCBRotateYTo, EaseSineIn, CatmullRomTo, DeccelAmplitude, Liquid, CCBRotateXTo, Follow, Place, TurnOffTiles, EaseExponentialInOut, CardinalSplineBy, CCBRotateTo, RepeatForever, AccelAmplitude, Shaky3D, EaseExponentialOut, FlipY, FadeOutDownTiles, CCBSoundEffect, Speed, CardinalSplineTo, EaseExponentialIn, FadeOutUpTiles, CCBSetSpriteFrame, AccelDeccelAmplitude, Ripple3D, FlipX, Repeat, TiledGrid3DAction, EaseInOut, FadeOutBLTiles, RemoveSelf, FiniteTimeAction, FadeOutTRTiles, EaseOut, Lens3D, OrbitCamera, ToggleVisibility, Sequence, EaseIn, Grid3DAction, FlipY3D, ShuffleTiles, Hide, EaseRateAction, FlipX3D, ProgressFromTo, ActionTween, ActionInterval, LuaCallFunc, Show, ShatteredTiles3D, ActionCamera, Waves3D, ActionInstant, PageTurn3D, ActionEase, GridAction, ProgressTo, and ShakyTiles3D.
returns a clone of action
Implements Clonable.
Implemented in TargetedAction, EaseCubicActionInOut, Animate, EaseCubicActionOut, ReverseTime, EaseCubicActionIn, EaseCircleActionInOut, DelayTime, EaseCircleActionOut, TintBy, EaseCircleActionIn, EaseQuinticActionInOut, TintTo, EaseQuinticActionOut, FadeOut, EaseQuinticActionIn, FadeIn, EaseQuarticActionInOut, FadeTo, EaseQuarticActionOut, EaseQuarticActionIn, Blink, EaseQuadraticActionInOut, ScaleBy, EaseQuadraticActionOut, EaseQuadraticActionIn, ScaleTo, EaseBezierAction, BezierTo, EaseBackInOut, BezierBy, EaseBackOut, EaseBackIn, JumpTo, EaseBounceInOut, JumpBy, EaseBounceOut, SkewBy, EaseBounceIn, SkewTo, EaseBounce, __CCCallFuncO, EaseElasticInOut, MoveTo, __CCCallFuncND, EaseElasticOut, MoveBy, EaseElasticIn, CallFuncN, SplitCols, RotateBy, EaseElastic, SplitRows, Twirl, JumpTiles3D, EaseSineInOut, RotateTo, CallFunc, ReuseGrid, EaseSineOut, CatmullRomBy, CCBEaseInstant, StopGrid, Waves, WavesTiles3D, Spawn, CCBRotateYTo, EaseSineIn, CatmullRomTo, DeccelAmplitude, Liquid, CCBRotateXTo, Follow, Place, TurnOffTiles, EaseExponentialInOut, CardinalSplineBy, CCBRotateTo, RepeatForever, AccelAmplitude, Shaky3D, EaseExponentialOut, FlipY, FadeOutDownTiles, CCBSoundEffect, Speed, CardinalSplineTo, EaseExponentialIn, FadeOutUpTiles, CCBSetSpriteFrame, AccelDeccelAmplitude, Ripple3D, FlipX, Repeat, TiledGrid3DAction, EaseInOut, FadeOutBLTiles, RemoveSelf, FiniteTimeAction, FadeOutTRTiles, EaseOut, Lens3D, OrbitCamera, ToggleVisibility, Sequence, EaseIn, Grid3DAction, FlipY3D, ShuffleTiles, Hide, EaseRateAction, FlipX3D, ProgressFromTo, ActionTween, ActionInterval, LuaCallFunc, Show, ShatteredTiles3D, ActionCamera, Waves3D, ActionInstant, PageTurn3D, ActionEase, GridAction, ProgressTo, and ShakyTiles3D.
returns a clone of action
Implements Clonable.
Implemented in TargetedAction, EaseCubicActionInOut, Animate, EaseCubicActionOut, ReverseTime, EaseCubicActionIn, EaseCircleActionInOut, DelayTime, EaseCircleActionOut, TintBy, EaseCircleActionIn, EaseQuinticActionInOut, TintTo, EaseQuinticActionOut, FadeOut, EaseQuinticActionIn, FadeIn, EaseQuarticActionInOut, FadeTo, EaseQuarticActionOut, EaseQuarticActionIn, Blink, EaseQuadraticActionInOut, ScaleBy, EaseQuadraticActionOut, EaseQuadraticActionIn, ScaleTo, EaseBezierAction, BezierTo, EaseBackInOut, BezierBy, EaseBackOut, EaseBackIn, JumpTo, EaseBounceInOut, JumpBy, EaseBounceOut, SkewBy, EaseBounceIn, SkewTo, EaseBounce, __CCCallFuncO, EaseElasticInOut, MoveTo, __CCCallFuncND, EaseElasticOut, MoveBy, EaseElasticIn, CallFuncN, SplitCols, RotateBy, EaseElastic, SplitRows, Twirl, JumpTiles3D, EaseSineInOut, RotateTo, CallFunc, ReuseGrid, EaseSineOut, CatmullRomBy, CCBEaseInstant, StopGrid, Waves, WavesTiles3D, Spawn, CCBRotateYTo, EaseSineIn, CatmullRomTo, DeccelAmplitude, Liquid, CCBRotateXTo, Follow, Place, TurnOffTiles, EaseExponentialInOut, CardinalSplineBy, CCBRotateTo, RepeatForever, AccelAmplitude, Shaky3D, EaseExponentialOut, FlipY, FadeOutDownTiles, CCBSoundEffect, Speed, CardinalSplineTo, EaseExponentialIn, FadeOutUpTiles, CCBSetSpriteFrame, AccelDeccelAmplitude, Ripple3D, FlipX, Repeat, TiledGrid3DAction, EaseInOut, FadeOutBLTiles, RemoveSelf, FiniteTimeAction, FadeOutTRTiles, EaseOut, Lens3D, OrbitCamera, ToggleVisibility, Sequence, EaseIn, Grid3DAction, FlipY3D, ShuffleTiles, Hide, EaseRateAction, FlipX3D, ProgressFromTo, ActionTween, ActionInterval, LuaCallFunc, Show, ShatteredTiles3D, ActionCamera, Waves3D, ActionInstant, PageTurn3D, ActionEase, GridAction, ProgressTo, and ShakyTiles3D.
virtual Action* reverse |
( |
) | |
const |
|
pure virtual |
returns a new action that performs the exactly the reverse action
Implemented in TargetedAction, EaseCubicActionInOut, Animate, EaseCubicActionOut, ReverseTime, EaseCubicActionIn, EaseCircleActionInOut, DelayTime, EaseCircleActionOut, TintBy, EaseCircleActionIn, EaseQuinticActionInOut, TintTo, EaseQuinticActionOut, FadeOut, EaseQuinticActionIn, FadeIn, EaseQuarticActionInOut, FadeTo, EaseQuarticActionOut, EaseQuarticActionIn, Blink, EaseQuadraticActionInOut, ScaleBy, EaseQuadraticActionOut, EaseQuadraticActionIn, ScaleTo, EaseBezierAction, BezierTo, EaseBackInOut, BezierBy, EaseBackOut, EaseBackIn, JumpTo, EaseBounceInOut, JumpBy, EaseBounceOut, SkewBy, EaseBounceIn, SkewTo, EaseBounce, EaseElasticInOut, EaseElasticOut, MoveBy, EaseElasticIn, RotateBy, EaseElastic, EaseSineInOut, RotateTo, ReuseGrid, CallFunc, EaseSineOut, CatmullRomBy, CCBEaseInstant, StopGrid, Spawn, CCBRotateYTo, EaseSineIn, CatmullRomTo, DeccelAmplitude, CCBRotateXTo, Follow, Place, EaseExponentialInOut, CardinalSplineBy, CCBRotateTo, RepeatForever, AccelAmplitude, EaseExponentialOut, FlipY, CCBSoundEffect, Speed, CardinalSplineTo, EaseExponentialIn, CCBSetSpriteFrame, AccelDeccelAmplitude, FlipX, Repeat, EaseInOut, RemoveSelf, FiniteTimeAction, EaseOut, ToggleVisibility, Sequence, EaseIn, Hide, EaseRateAction, ProgressFromTo, ActionTween, ActionInterval, Show, ActionCamera, ActionInstant, ActionEase, GridAction, and ProgressTo.
returns a new action that performs the exactly the reverse action
Implemented in TargetedAction, EaseCubicActionInOut, Animate, EaseCubicActionOut, ReverseTime, EaseCubicActionIn, EaseCircleActionInOut, DelayTime, EaseCircleActionOut, TintBy, EaseCircleActionIn, EaseQuinticActionInOut, TintTo, EaseQuinticActionOut, FadeOut, EaseQuinticActionIn, FadeIn, EaseQuarticActionInOut, FadeTo, EaseQuarticActionOut, EaseQuarticActionIn, Blink, EaseQuadraticActionInOut, ScaleBy, EaseQuadraticActionOut, EaseQuadraticActionIn, ScaleTo, EaseBezierAction, BezierTo, EaseBackInOut, BezierBy, EaseBackOut, EaseBackIn, JumpTo, EaseBounceInOut, JumpBy, EaseBounceOut, SkewBy, EaseBounceIn, SkewTo, EaseBounce, EaseElasticInOut, EaseElasticOut, MoveBy, EaseElasticIn, RotateBy, EaseElastic, EaseSineInOut, RotateTo, ReuseGrid, CallFunc, EaseSineOut, CatmullRomBy, CCBEaseInstant, StopGrid, Spawn, CCBRotateYTo, EaseSineIn, CatmullRomTo, DeccelAmplitude, CCBRotateXTo, Follow, Place, EaseExponentialInOut, CardinalSplineBy, CCBRotateTo, RepeatForever, AccelAmplitude, EaseExponentialOut, FlipY, CCBSoundEffect, Speed, CardinalSplineTo, EaseExponentialIn, CCBSetSpriteFrame, AccelDeccelAmplitude, FlipX, Repeat, EaseInOut, RemoveSelf, FiniteTimeAction, EaseOut, ToggleVisibility, Sequence, EaseIn, Hide, EaseRateAction, ProgressFromTo, ActionTween, ActionInterval, Show, ActionCamera, ActionInstant, ActionEase, GridAction, and ProgressTo.
returns a new action that performs the exactly the reverse action
Implemented in TargetedAction, EaseCubicActionInOut, Animate, EaseCubicActionOut, ReverseTime, EaseCubicActionIn, EaseCircleActionInOut, DelayTime, EaseCircleActionOut, TintBy, EaseCircleActionIn, EaseQuinticActionInOut, TintTo, EaseQuinticActionOut, FadeOut, EaseQuinticActionIn, FadeIn, EaseQuarticActionInOut, FadeTo, EaseQuarticActionOut, EaseQuarticActionIn, Blink, EaseQuadraticActionInOut, ScaleBy, EaseQuadraticActionOut, EaseQuadraticActionIn, ScaleTo, EaseBezierAction, BezierTo, EaseBackInOut, BezierBy, EaseBackOut, EaseBackIn, JumpTo, EaseBounceInOut, JumpBy, EaseBounceOut, SkewBy, EaseBounceIn, SkewTo, EaseBounce, EaseElasticInOut, EaseElasticOut, MoveBy, EaseElasticIn, RotateBy, EaseElastic, EaseSineInOut, RotateTo, ReuseGrid, CallFunc, EaseSineOut, CatmullRomBy, CCBEaseInstant, StopGrid, Spawn, CCBRotateYTo, EaseSineIn, CatmullRomTo, DeccelAmplitude, CCBRotateXTo, Follow, Place, EaseExponentialInOut, CardinalSplineBy, CCBRotateTo, RepeatForever, AccelAmplitude, EaseExponentialOut, FlipY, CCBSoundEffect, Speed, CardinalSplineTo, EaseExponentialIn, CCBSetSpriteFrame, AccelDeccelAmplitude, FlipX, Repeat, EaseInOut, RemoveSelf, FiniteTimeAction, EaseOut, ToggleVisibility, Sequence, EaseIn, Hide, EaseRateAction, ProgressFromTo, ActionTween, ActionInterval, Show, ActionCamera, ActionInstant, ActionEase, GridAction, and ProgressTo.
virtual void startWithTarget |
( |
Node * |
target) | |
|
|
virtual |
called before the action start. It will also set the target.
Reimplemented in TargetedAction, Animate, ReverseTime, TintBy, TintTo, FadeOut, FadeIn, FadeTo, Blink, ScaleBy, ScaleTo, BezierTo, BezierBy, JumpTo, JumpBy, SkewBy, SkewTo, MoveTo, MoveBy, SplitCols, RotateBy, SplitRows, RotateTo, ReuseGrid, StopGrid, Spawn, CCBRotateYTo, DeccelAmplitude, CCBRotateXTo, TurnOffTiles, CCBRotateTo, CardinalSplineBy, RepeatForever, AccelAmplitude, Speed, CardinalSplineTo, AccelDeccelAmplitude, Repeat, OrbitCamera, Sequence, ShuffleTiles, ProgressFromTo, ActionInterval, ActionTween, ActionCamera, ActionEase, GridAction, and ProgressTo.
var startWithTarget |
( |
var |
target) | |
|
|
virtual |
called before the action start. It will also set the target.
Reimplemented in TargetedAction, Animate, ReverseTime, TintBy, TintTo, FadeOut, FadeIn, FadeTo, Blink, ScaleBy, ScaleTo, BezierTo, BezierBy, JumpTo, JumpBy, SkewBy, SkewTo, MoveTo, MoveBy, SplitCols, RotateBy, SplitRows, RotateTo, ReuseGrid, StopGrid, Spawn, CCBRotateYTo, DeccelAmplitude, CCBRotateXTo, TurnOffTiles, CCBRotateTo, CardinalSplineBy, RepeatForever, AccelAmplitude, Speed, CardinalSplineTo, AccelDeccelAmplitude, Repeat, OrbitCamera, Sequence, ShuffleTiles, ProgressFromTo, ActionInterval, ActionTween, ActionCamera, ActionEase, GridAction, and ProgressTo.
local startWithTarget |
( |
local |
target) | |
|
|
virtual |
called before the action start. It will also set the target.
Reimplemented in TargetedAction, Animate, ReverseTime, TintBy, TintTo, FadeOut, FadeIn, FadeTo, Blink, ScaleBy, ScaleTo, BezierTo, BezierBy, JumpTo, JumpBy, SkewBy, SkewTo, MoveTo, MoveBy, SplitCols, RotateBy, SplitRows, RotateTo, ReuseGrid, StopGrid, Spawn, CCBRotateYTo, DeccelAmplitude, CCBRotateXTo, TurnOffTiles, CCBRotateTo, CardinalSplineBy, RepeatForever, AccelAmplitude, Speed, CardinalSplineTo, AccelDeccelAmplitude, Repeat, OrbitCamera, Sequence, ShuffleTiles, ProgressFromTo, ActionInterval, ActionTween, ActionCamera, ActionEase, GridAction, and ProgressTo.
called after the action has finished.
It will set the 'target' to nil. IMPORTANT: You should never call "[action stop]" manually. Instead, use: "target->stopAction(action);"
Reimplemented in TargetedAction, Animate, ReverseTime, Blink, Spawn, Follow, Speed, Repeat, Sequence, and ActionEase.
called after the action has finished.
It will set the 'target' to nil. IMPORTANT: You should never call "[action stop]" manually. Instead, use: "target->stopAction(action);"
Reimplemented in TargetedAction, Animate, ReverseTime, Blink, Spawn, Follow, Speed, Repeat, Sequence, and ActionEase.
called after the action has finished.
It will set the 'target' to nil. IMPORTANT: You should never call "[action stop]" manually. Instead, use: "target->stopAction(action);"
Reimplemented in TargetedAction, Animate, ReverseTime, Blink, Spawn, Follow, Speed, Repeat, Sequence, and ActionEase.
virtual void update |
( |
float |
time) | |
|
|
virtual |
called once per frame.
time a value between 0 and 1
For example:
- 0 means that the action just started
- 0.5 means that the action is in the middle
- 1 means that the action is over
Reimplemented in TargetedAction, EaseCubicActionInOut, Animate, EaseCubicActionOut, ReverseTime, EaseCubicActionIn, EaseCircleActionInOut, DelayTime, EaseCircleActionOut, TintBy, EaseCircleActionIn, TintTo, EaseQuinticActionInOut, EaseQuinticActionOut, EaseQuinticActionIn, EaseQuarticActionInOut, FadeTo, EaseQuarticActionOut, EaseQuarticActionIn, Blink, EaseQuadraticActionInOut, EaseQuadraticActionOut, ScaleTo, EaseQuadraticActionIn, EaseBezierAction, EaseBackInOut, BezierBy, EaseBackOut, EaseBackIn, EaseBounceInOut, JumpBy, EaseBounceOut, EaseBounceIn, SkewTo, EaseElasticInOut, EaseElasticOut, MoveBy, EaseElasticIn, SplitCols, RotateBy, SplitRows, Twirl, JumpTiles3D, RotateTo, EaseSineInOut, CallFunc, EaseSineOut, CCBEaseInstant, Waves, Spawn, WavesTiles3D, CCBRotateYTo, EaseSineIn, DeccelAmplitude, CCBRotateXTo, Liquid, Place, TurnOffTiles, EaseExponentialInOut, CCBRotateTo, AccelAmplitude, Shaky3D, EaseExponentialOut, FlipY, CCBSoundEffect, CardinalSplineTo, EaseExponentialIn, CCBSetSpriteFrame, AccelDeccelAmplitude, Ripple3D, FlipX, Repeat, EaseInOut, RemoveSelf, FadeOutTRTiles, EaseOut, Lens3D, OrbitCamera, ToggleVisibility, Sequence, EaseIn, FlipY3D, ShuffleTiles, Hide, ProgressFromTo, FlipX3D, ActionTween, Show, ShatteredTiles3D, Waves3D, ActionInstant, ActionEase, PageTurn3D, ProgressTo, and ShakyTiles3D.
called once per frame.
time a value between 0 and 1
For example:
- 0 means that the action just started
- 0.5 means that the action is in the middle
- 1 means that the action is over
Reimplemented in TargetedAction, EaseCubicActionInOut, Animate, EaseCubicActionOut, ReverseTime, EaseCubicActionIn, EaseCircleActionInOut, DelayTime, EaseCircleActionOut, TintBy, EaseCircleActionIn, TintTo, EaseQuinticActionInOut, EaseQuinticActionOut, EaseQuinticActionIn, EaseQuarticActionInOut, FadeTo, EaseQuarticActionOut, EaseQuarticActionIn, Blink, EaseQuadraticActionInOut, EaseQuadraticActionOut, ScaleTo, EaseQuadraticActionIn, EaseBezierAction, EaseBackInOut, BezierBy, EaseBackOut, EaseBackIn, EaseBounceInOut, JumpBy, EaseBounceOut, EaseBounceIn, SkewTo, EaseElasticInOut, EaseElasticOut, MoveBy, EaseElasticIn, SplitCols, RotateBy, SplitRows, Twirl, JumpTiles3D, RotateTo, EaseSineInOut, CallFunc, EaseSineOut, CCBEaseInstant, Waves, Spawn, WavesTiles3D, CCBRotateYTo, EaseSineIn, DeccelAmplitude, CCBRotateXTo, Liquid, Place, TurnOffTiles, EaseExponentialInOut, CCBRotateTo, AccelAmplitude, Shaky3D, EaseExponentialOut, FlipY, CCBSoundEffect, CardinalSplineTo, EaseExponentialIn, CCBSetSpriteFrame, AccelDeccelAmplitude, Ripple3D, FlipX, Repeat, EaseInOut, RemoveSelf, FadeOutTRTiles, EaseOut, Lens3D, OrbitCamera, ToggleVisibility, Sequence, EaseIn, FlipY3D, ShuffleTiles, Hide, ProgressFromTo, FlipX3D, ActionTween, Show, ShatteredTiles3D, Waves3D, ActionInstant, ActionEase, PageTurn3D, ProgressTo, and ShakyTiles3D.
local update |
( |
local |
time) | |
|
|
virtual |
called once per frame.
time a value between 0 and 1
For example:
- 0 means that the action just started
- 0.5 means that the action is in the middle
- 1 means that the action is over
Reimplemented in TargetedAction, EaseCubicActionInOut, Animate, EaseCubicActionOut, ReverseTime, EaseCubicActionIn, EaseCircleActionInOut, DelayTime, EaseCircleActionOut, TintBy, EaseCircleActionIn, TintTo, EaseQuinticActionInOut, EaseQuinticActionOut, EaseQuinticActionIn, EaseQuarticActionInOut, FadeTo, EaseQuarticActionOut, EaseQuarticActionIn, Blink, EaseQuadraticActionInOut, EaseQuadraticActionOut, ScaleTo, EaseQuadraticActionIn, EaseBezierAction, EaseBackInOut, BezierBy, EaseBackOut, EaseBackIn, EaseBounceInOut, JumpBy, EaseBounceOut, EaseBounceIn, SkewTo, EaseElasticInOut, EaseElasticOut, MoveBy, EaseElasticIn, SplitCols, RotateBy, SplitRows, Twirl, JumpTiles3D, RotateTo, EaseSineInOut, CallFunc, EaseSineOut, CCBEaseInstant, Waves, Spawn, WavesTiles3D, CCBRotateYTo, EaseSineIn, DeccelAmplitude, CCBRotateXTo, Liquid, Place, TurnOffTiles, EaseExponentialInOut, CCBRotateTo, AccelAmplitude, Shaky3D, EaseExponentialOut, FlipY, CCBSoundEffect, CardinalSplineTo, EaseExponentialIn, CCBSetSpriteFrame, AccelDeccelAmplitude, Ripple3D, FlipX, Repeat, EaseInOut, RemoveSelf, FadeOutTRTiles, EaseOut, Lens3D, OrbitCamera, ToggleVisibility, Sequence, EaseIn, FlipY3D, ShuffleTiles, Hide, ProgressFromTo, FlipX3D, ActionTween, Show, ShatteredTiles3D, Waves3D, ActionInstant, ActionEase, PageTurn3D, ProgressTo, and ShakyTiles3D.