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