Base class for Action objects.
virtual Action* clone |
( |
| ) |
const |
|
inlinevirtual |
returns a clone of action
Implements Clonable.
Reimplemented in TargetedAction, Animate, ReverseTime, EaseCubicActionInOut, DelayTime, EaseCubicActionOut, EaseCubicActionIn, TintBy, EaseCircleActionInOut, TintTo, EaseCircleActionOut, FadeOut, EaseCircleActionIn, FadeIn, EaseQuinticActionInOut, EaseQuinticActionOut, FadeTo, EaseQuinticActionIn, Blink, EaseQuarticActionInOut, ScaleBy, EaseQuarticActionOut, EaseQuarticActionIn, EaseQuadraticActionInOut, ScaleTo, EaseQuadraticActionOut, BezierTo, EaseQuadraticActionIn, EaseBezierAction, BezierBy, EaseBackInOut, JumpTo, EaseBackOut, EaseBackIn, JumpBy, EaseBounceInOut, SkewBy, EaseBounceOut, SkewTo, EaseBounceIn, MoveTo, EaseBounce, __CCCallFuncO, EaseElasticInOut, MoveBy, EaseElasticOut, __CCCallFuncND, RotateBy, EaseElasticIn, CallFuncN, SplitCols, RotateTo, EaseElastic, SplitRows, EaseSineInOut, Twirl, Spawn, ReuseGrid, CallFunc, JumpTiles3D, EaseSineOut, StopGrid, Waves, CatmullRomBy, CCBEaseInstant, EaseSineIn, WavesTiles3D, DeccelAmplitude, CCBRotateYTo, Follow, CatmullRomTo, RepeatForever, EaseExponentialInOut, Place, Liquid, CCBRotateXTo, TurnOffTiles, EaseExponentialOut, AccelAmplitude, CardinalSplineBy, CCBRotateTo, FlipY, Shaky3D, FadeOutDownTiles, Speed, EaseExponentialIn, CCBSoundEffect, Repeat, AccelDeccelAmplitude, FadeOutUpTiles, FlipX, CardinalSplineTo, Ripple3D, CCBSetSpriteFrame, EaseInOut, TiledGrid3DAction, FadeOutBLTiles, EaseOut, FiniteTimeAction, RemoveSelf, Sequence, FadeOutTRTiles, ActionTimeline, Lens3D, EaseIn, ToggleVisibility, Grid3DAction, FlipY3D, ShuffleTiles, Hide, OrbitCamera, EaseRateAction, ActionInterval, FlipX3D, ProgressFromTo, Show, ActionTween, LuaCallFunc, Animate3D, ShatteredTiles3D, ActionCamera, Waves3D, PageTurn3D, ActionEase, GridAction, ActionInstant, ProgressTo, and ShakyTiles3D.
returns a clone of action
Implements Clonable.
Reimplemented in TargetedAction, Animate, ReverseTime, EaseCubicActionInOut, DelayTime, EaseCubicActionOut, EaseCubicActionIn, TintBy, EaseCircleActionInOut, TintTo, EaseCircleActionOut, FadeOut, EaseCircleActionIn, FadeIn, EaseQuinticActionInOut, EaseQuinticActionOut, FadeTo, EaseQuinticActionIn, Blink, EaseQuarticActionInOut, ScaleBy, EaseQuarticActionOut, EaseQuarticActionIn, EaseQuadraticActionInOut, ScaleTo, EaseQuadraticActionOut, BezierTo, EaseQuadraticActionIn, EaseBezierAction, BezierBy, EaseBackInOut, JumpTo, EaseBackOut, EaseBackIn, JumpBy, EaseBounceInOut, SkewBy, EaseBounceOut, SkewTo, EaseBounceIn, MoveTo, EaseBounce, __CCCallFuncO, EaseElasticInOut, MoveBy, EaseElasticOut, __CCCallFuncND, RotateBy, EaseElasticIn, CallFuncN, SplitCols, RotateTo, EaseElastic, SplitRows, EaseSineInOut, Twirl, Spawn, ReuseGrid, CallFunc, JumpTiles3D, EaseSineOut, StopGrid, Waves, CatmullRomBy, CCBEaseInstant, EaseSineIn, WavesTiles3D, DeccelAmplitude, CCBRotateYTo, Follow, CatmullRomTo, RepeatForever, EaseExponentialInOut, Place, Liquid, CCBRotateXTo, TurnOffTiles, EaseExponentialOut, AccelAmplitude, CardinalSplineBy, CCBRotateTo, FlipY, Shaky3D, FadeOutDownTiles, Speed, EaseExponentialIn, CCBSoundEffect, Repeat, AccelDeccelAmplitude, FadeOutUpTiles, FlipX, CardinalSplineTo, Ripple3D, CCBSetSpriteFrame, EaseInOut, TiledGrid3DAction, FadeOutBLTiles, EaseOut, FiniteTimeAction, RemoveSelf, Sequence, FadeOutTRTiles, ActionTimeline, Lens3D, EaseIn, ToggleVisibility, Grid3DAction, FlipY3D, ShuffleTiles, Hide, OrbitCamera, EaseRateAction, ActionInterval, FlipX3D, ProgressFromTo, Show, ActionTween, LuaCallFunc, Animate3D, ShatteredTiles3D, ActionCamera, Waves3D, PageTurn3D, ActionEase, GridAction, ActionInstant, ProgressTo, and ShakyTiles3D.
returns a clone of action
Implements Clonable.
Reimplemented in TargetedAction, Animate, ReverseTime, EaseCubicActionInOut, DelayTime, EaseCubicActionOut, EaseCubicActionIn, TintBy, EaseCircleActionInOut, TintTo, EaseCircleActionOut, FadeOut, EaseCircleActionIn, FadeIn, EaseQuinticActionInOut, EaseQuinticActionOut, FadeTo, EaseQuinticActionIn, Blink, EaseQuarticActionInOut, ScaleBy, EaseQuarticActionOut, EaseQuarticActionIn, EaseQuadraticActionInOut, ScaleTo, EaseQuadraticActionOut, BezierTo, EaseQuadraticActionIn, EaseBezierAction, BezierBy, EaseBackInOut, JumpTo, EaseBackOut, EaseBackIn, JumpBy, EaseBounceInOut, SkewBy, EaseBounceOut, SkewTo, EaseBounceIn, MoveTo, EaseBounce, __CCCallFuncO, EaseElasticInOut, MoveBy, EaseElasticOut, __CCCallFuncND, RotateBy, EaseElasticIn, CallFuncN, SplitCols, RotateTo, EaseElastic, SplitRows, EaseSineInOut, Twirl, Spawn, ReuseGrid, CallFunc, JumpTiles3D, EaseSineOut, StopGrid, Waves, CatmullRomBy, CCBEaseInstant, EaseSineIn, WavesTiles3D, DeccelAmplitude, CCBRotateYTo, Follow, CatmullRomTo, RepeatForever, EaseExponentialInOut, Place, Liquid, CCBRotateXTo, TurnOffTiles, EaseExponentialOut, AccelAmplitude, CardinalSplineBy, CCBRotateTo, FlipY, Shaky3D, FadeOutDownTiles, Speed, EaseExponentialIn, CCBSoundEffect, Repeat, AccelDeccelAmplitude, FadeOutUpTiles, FlipX, CardinalSplineTo, Ripple3D, CCBSetSpriteFrame, EaseInOut, TiledGrid3DAction, FadeOutBLTiles, EaseOut, FiniteTimeAction, RemoveSelf, Sequence, FadeOutTRTiles, ActionTimeline, Lens3D, EaseIn, ToggleVisibility, Grid3DAction, FlipY3D, ShuffleTiles, Hide, OrbitCamera, EaseRateAction, ActionInterval, FlipX3D, ProgressFromTo, Show, ActionTween, LuaCallFunc, Animate3D, ShatteredTiles3D, ActionCamera, Waves3D, PageTurn3D, ActionEase, GridAction, ActionInstant, ProgressTo, and ShakyTiles3D.
virtual Action* reverse |
( |
void |
| ) |
const |
|
inlinevirtual |
returns a new action that performs the exactly the reverse action
Reimplemented in TargetedAction, Animate, ReverseTime, EaseCubicActionInOut, DelayTime, EaseCubicActionOut, EaseCubicActionIn, TintBy, EaseCircleActionInOut, TintTo, EaseCircleActionOut, FadeOut, EaseCircleActionIn, FadeIn, EaseQuinticActionInOut, EaseQuinticActionOut, FadeTo, EaseQuinticActionIn, Blink, EaseQuarticActionInOut, ScaleBy, EaseQuarticActionOut, EaseQuarticActionIn, EaseQuadraticActionInOut, ScaleTo, EaseQuadraticActionOut, BezierTo, EaseQuadraticActionIn, EaseBezierAction, BezierBy, EaseBackInOut, JumpTo, EaseBackOut, EaseBackIn, JumpBy, EaseBounceInOut, SkewBy, EaseBounceOut, SkewTo, EaseBounceIn, EaseBounce, EaseElasticInOut, MoveBy, EaseElasticOut, RotateBy, EaseElasticIn, RotateTo, EaseElastic, EaseSineInOut, Spawn, ReuseGrid, CallFunc, EaseSineOut, StopGrid, CatmullRomBy, CCBEaseInstant, EaseSineIn, DeccelAmplitude, CCBRotateYTo, Follow, CatmullRomTo, RepeatForever, EaseExponentialInOut, Place, CCBRotateXTo, EaseExponentialOut, AccelAmplitude, CardinalSplineBy, CCBRotateTo, FlipY, Speed, EaseExponentialIn, CCBSoundEffect, Repeat, AccelDeccelAmplitude, CardinalSplineTo, FlipX, CCBSetSpriteFrame, EaseInOut, EaseOut, RemoveSelf, FiniteTimeAction, Sequence, ActionTimeline, EaseIn, ToggleVisibility, Hide, EaseRateAction, ProgressFromTo, ActionInterval, Show, ActionTween, Animate3D, ActionCamera, ActionEase, ActionInstant, GridAction, and ProgressTo.
returns a new action that performs the exactly the reverse action
Reimplemented in TargetedAction, Animate, ReverseTime, EaseCubicActionInOut, DelayTime, EaseCubicActionOut, EaseCubicActionIn, TintBy, EaseCircleActionInOut, TintTo, EaseCircleActionOut, FadeOut, EaseCircleActionIn, FadeIn, EaseQuinticActionInOut, EaseQuinticActionOut, FadeTo, EaseQuinticActionIn, Blink, EaseQuarticActionInOut, ScaleBy, EaseQuarticActionOut, EaseQuarticActionIn, EaseQuadraticActionInOut, ScaleTo, EaseQuadraticActionOut, BezierTo, EaseQuadraticActionIn, EaseBezierAction, BezierBy, EaseBackInOut, JumpTo, EaseBackOut, EaseBackIn, JumpBy, EaseBounceInOut, SkewBy, EaseBounceOut, SkewTo, EaseBounceIn, EaseBounce, EaseElasticInOut, MoveBy, EaseElasticOut, RotateBy, EaseElasticIn, RotateTo, EaseElastic, EaseSineInOut, Spawn, ReuseGrid, CallFunc, EaseSineOut, StopGrid, CatmullRomBy, CCBEaseInstant, EaseSineIn, DeccelAmplitude, CCBRotateYTo, Follow, CatmullRomTo, RepeatForever, EaseExponentialInOut, Place, CCBRotateXTo, EaseExponentialOut, AccelAmplitude, CardinalSplineBy, CCBRotateTo, FlipY, Speed, EaseExponentialIn, CCBSoundEffect, Repeat, AccelDeccelAmplitude, CardinalSplineTo, FlipX, CCBSetSpriteFrame, EaseInOut, EaseOut, RemoveSelf, FiniteTimeAction, Sequence, ActionTimeline, EaseIn, ToggleVisibility, Hide, EaseRateAction, ProgressFromTo, ActionInterval, Show, ActionTween, Animate3D, ActionCamera, ActionEase, ActionInstant, GridAction, and ProgressTo.
returns a new action that performs the exactly the reverse action
Reimplemented in TargetedAction, Animate, ReverseTime, EaseCubicActionInOut, DelayTime, EaseCubicActionOut, EaseCubicActionIn, TintBy, EaseCircleActionInOut, TintTo, EaseCircleActionOut, FadeOut, EaseCircleActionIn, FadeIn, EaseQuinticActionInOut, EaseQuinticActionOut, FadeTo, EaseQuinticActionIn, Blink, EaseQuarticActionInOut, ScaleBy, EaseQuarticActionOut, EaseQuarticActionIn, EaseQuadraticActionInOut, ScaleTo, EaseQuadraticActionOut, BezierTo, EaseQuadraticActionIn, EaseBezierAction, BezierBy, EaseBackInOut, JumpTo, EaseBackOut, EaseBackIn, JumpBy, EaseBounceInOut, SkewBy, EaseBounceOut, SkewTo, EaseBounceIn, EaseBounce, EaseElasticInOut, MoveBy, EaseElasticOut, RotateBy, EaseElasticIn, RotateTo, EaseElastic, EaseSineInOut, Spawn, ReuseGrid, CallFunc, EaseSineOut, StopGrid, CatmullRomBy, CCBEaseInstant, EaseSineIn, DeccelAmplitude, CCBRotateYTo, Follow, CatmullRomTo, RepeatForever, EaseExponentialInOut, Place, CCBRotateXTo, EaseExponentialOut, AccelAmplitude, CardinalSplineBy, CCBRotateTo, FlipY, Speed, EaseExponentialIn, CCBSoundEffect, Repeat, AccelDeccelAmplitude, CardinalSplineTo, FlipX, CCBSetSpriteFrame, EaseInOut, EaseOut, RemoveSelf, FiniteTimeAction, Sequence, ActionTimeline, EaseIn, ToggleVisibility, Hide, EaseRateAction, ProgressFromTo, ActionInterval, Show, ActionTween, Animate3D, ActionCamera, ActionEase, ActionInstant, 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, RotateBy, SplitCols, RotateTo, SplitRows, Spawn, ReuseGrid, StopGrid, CCBRotateYTo, DeccelAmplitude, RepeatForever, TurnOffTiles, CCBRotateXTo, AccelAmplitude, CCBRotateTo, CardinalSplineBy, Speed, Repeat, AccelDeccelAmplitude, CardinalSplineTo, Sequence, ActionTimeline, ShuffleTiles, OrbitCamera, ProgressFromTo, ActionInterval, ActionTween, Animate3D, ActionEase, ActionCamera, 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, RotateBy, SplitCols, RotateTo, SplitRows, Spawn, ReuseGrid, StopGrid, CCBRotateYTo, DeccelAmplitude, RepeatForever, TurnOffTiles, CCBRotateXTo, AccelAmplitude, CCBRotateTo, CardinalSplineBy, Speed, Repeat, AccelDeccelAmplitude, CardinalSplineTo, Sequence, ActionTimeline, ShuffleTiles, OrbitCamera, ProgressFromTo, ActionInterval, ActionTween, Animate3D, ActionEase, ActionCamera, 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, RotateBy, SplitCols, RotateTo, SplitRows, Spawn, ReuseGrid, StopGrid, CCBRotateYTo, DeccelAmplitude, RepeatForever, TurnOffTiles, CCBRotateXTo, AccelAmplitude, CCBRotateTo, CardinalSplineBy, Speed, Repeat, AccelDeccelAmplitude, CardinalSplineTo, Sequence, ActionTimeline, ShuffleTiles, OrbitCamera, ProgressFromTo, ActionInterval, ActionTween, Animate3D, ActionEase, ActionCamera, 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, Animate3D, 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, Animate3D, 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, Animate3D, 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, Animate, ReverseTime, EaseCubicActionInOut, DelayTime, EaseCubicActionOut, TintBy, EaseCubicActionIn, EaseCircleActionInOut, TintTo, EaseCircleActionOut, EaseCircleActionIn, EaseQuinticActionInOut, EaseQuinticActionOut, FadeTo, EaseQuinticActionIn, Blink, EaseQuarticActionInOut, EaseQuarticActionOut, EaseQuarticActionIn, EaseQuadraticActionInOut, ScaleTo, EaseQuadraticActionOut, EaseQuadraticActionIn, EaseBezierAction, BezierBy, EaseBackInOut, EaseBackOut, EaseBackIn, JumpBy, EaseBounceInOut, EaseBounceOut, SkewTo, EaseBounceIn, MoveBy, EaseElasticInOut, EaseElasticOut, RotateBy, EaseElasticIn, SplitCols, RotateTo, SplitRows, Spawn, Twirl, EaseSineInOut, JumpTiles3D, CallFunc, EaseSineOut, Waves, CCBEaseInstant, WavesTiles3D, EaseSineIn, CCBRotateYTo, DeccelAmplitude, EaseExponentialInOut, Liquid, Place, CCBRotateXTo, TurnOffTiles, EaseExponentialOut, AccelAmplitude, CCBRotateTo, FlipY, Shaky3D, EaseExponentialIn, CCBSoundEffect, Repeat, AccelDeccelAmplitude, CardinalSplineTo, FlipX, Ripple3D, CCBSetSpriteFrame, EaseInOut, EaseOut, RemoveSelf, Sequence, FadeOutTRTiles, Lens3D, EaseIn, ToggleVisibility, FlipY3D, ShuffleTiles, OrbitCamera, Hide, ProgressFromTo, FlipX3D, Show, Animate3D, ActionTween, ShatteredTiles3D, ActionEase, ActionInstant, Waves3D, 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, Animate, ReverseTime, EaseCubicActionInOut, DelayTime, EaseCubicActionOut, TintBy, EaseCubicActionIn, EaseCircleActionInOut, TintTo, EaseCircleActionOut, EaseCircleActionIn, EaseQuinticActionInOut, EaseQuinticActionOut, FadeTo, EaseQuinticActionIn, Blink, EaseQuarticActionInOut, EaseQuarticActionOut, EaseQuarticActionIn, EaseQuadraticActionInOut, ScaleTo, EaseQuadraticActionOut, EaseQuadraticActionIn, EaseBezierAction, BezierBy, EaseBackInOut, EaseBackOut, EaseBackIn, JumpBy, EaseBounceInOut, EaseBounceOut, SkewTo, EaseBounceIn, MoveBy, EaseElasticInOut, EaseElasticOut, RotateBy, EaseElasticIn, SplitCols, RotateTo, SplitRows, Spawn, Twirl, EaseSineInOut, JumpTiles3D, CallFunc, EaseSineOut, Waves, CCBEaseInstant, WavesTiles3D, EaseSineIn, CCBRotateYTo, DeccelAmplitude, EaseExponentialInOut, Liquid, Place, CCBRotateXTo, TurnOffTiles, EaseExponentialOut, AccelAmplitude, CCBRotateTo, FlipY, Shaky3D, EaseExponentialIn, CCBSoundEffect, Repeat, AccelDeccelAmplitude, CardinalSplineTo, FlipX, Ripple3D, CCBSetSpriteFrame, EaseInOut, EaseOut, RemoveSelf, Sequence, FadeOutTRTiles, Lens3D, EaseIn, ToggleVisibility, FlipY3D, ShuffleTiles, OrbitCamera, Hide, ProgressFromTo, FlipX3D, Show, Animate3D, ActionTween, ShatteredTiles3D, ActionEase, ActionInstant, Waves3D, 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, Animate, ReverseTime, EaseCubicActionInOut, DelayTime, EaseCubicActionOut, TintBy, EaseCubicActionIn, EaseCircleActionInOut, TintTo, EaseCircleActionOut, EaseCircleActionIn, EaseQuinticActionInOut, EaseQuinticActionOut, FadeTo, EaseQuinticActionIn, Blink, EaseQuarticActionInOut, EaseQuarticActionOut, EaseQuarticActionIn, EaseQuadraticActionInOut, ScaleTo, EaseQuadraticActionOut, EaseQuadraticActionIn, EaseBezierAction, BezierBy, EaseBackInOut, EaseBackOut, EaseBackIn, JumpBy, EaseBounceInOut, EaseBounceOut, SkewTo, EaseBounceIn, MoveBy, EaseElasticInOut, EaseElasticOut, RotateBy, EaseElasticIn, SplitCols, RotateTo, SplitRows, Spawn, Twirl, EaseSineInOut, JumpTiles3D, CallFunc, EaseSineOut, Waves, CCBEaseInstant, WavesTiles3D, EaseSineIn, CCBRotateYTo, DeccelAmplitude, EaseExponentialInOut, Liquid, Place, CCBRotateXTo, TurnOffTiles, EaseExponentialOut, AccelAmplitude, CCBRotateTo, FlipY, Shaky3D, EaseExponentialIn, CCBSoundEffect, Repeat, AccelDeccelAmplitude, CardinalSplineTo, FlipX, Ripple3D, CCBSetSpriteFrame, EaseInOut, EaseOut, RemoveSelf, Sequence, FadeOutTRTiles, Lens3D, EaseIn, ToggleVisibility, FlipY3D, ShuffleTiles, OrbitCamera, Hide, ProgressFromTo, FlipX3D, Show, Animate3D, ActionTween, ShatteredTiles3D, ActionEase, ActionInstant, Waves3D, PageTurn3D, ProgressTo, and ShakyTiles3D.