cocos2d-x
3.3
|
Base class actions that do have a finite time duration. More...
#include <CCAction.h>
Public Member Functions | |
float | getDuration () const |
get duration in seconds of the action More... | |
void | setDuration (float duration) |
set duration in seconds of the action More... | |
virtual FiniteTimeAction * | reverse () const override |
returns a new action that performs the exactly the reverse action More... | |
virtual FiniteTimeAction * | clone () const override |
returns a clone of action More... | |
![]() | |
virtual std::string | description () const |
NA NA More... | |
virtual bool | isDone () const |
return true if the action has finished More... | |
virtual void | startWithTarget (Node *target) |
called before the action start. It will also set the target. More... | |
virtual void | stop () |
called after the action has finished. More... | |
virtual void | step (float dt) |
called every frame with it's delta time. DON'T override unless you know what you are doing. More... | |
virtual void | update (float time) |
called once per frame. More... | |
Node * | getTarget () const |
void | setTarget (Node *target) |
The action will modify the target properties. More... | |
Node * | getOriginalTarget () const |
void | setOriginalTarget (Node *originalTarget) |
Set the original target, since target can be nil. More... | |
int | getTag () const |
void | setTag (int tag) |
virtual | ~Action () |
![]() | |
void | retain () |
Retains the ownership. More... | |
void | release () |
Releases the ownership immediately. More... | |
Ref * | autorelease () |
Releases the ownership sometime soon automatically. More... | |
unsigned int | getReferenceCount () const |
Returns the Ref's current reference count. More... | |
virtual | ~Ref () |
NA NA More... | |
![]() | |
virtual | ~Clonable () |
NA NA More... | |
Ref * | copy () const |
returns a copy of the Ref. More... | |
Public Attributes | |
CC_CONSTRUCTOR_ACCESS | __pad0__: FiniteTimeAction() : _duration(0) {} virtual ~FiniteTimeAction(){}protected: float _duration |
![]() | |
CC_CONSTRUCTOR_ACCESS | __pad0__: Action() |
Additional Inherited Members | |
![]() | |
static const int | INVALID_TAG = -1 |
Default tag used for all the actions. More... | |
![]() | |
Ref () | |
Constructor. More... | |
![]() | |
Node * | _originalTarget |
Node * | _target |
The "target". More... | |
int | _tag |
The action tag. More... | |
![]() | |
unsigned int | _referenceCount |
count of references More... | |
Base class actions that do have a finite time duration.
Possible actions:
Infinite time actions are valid
|
inlineoverridevirtual |
returns a clone of action
Reimplemented from 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, 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, CatmullRomTo, RepeatForever, EaseExponentialInOut, Place, Liquid, CCBRotateXTo, TurnOffTiles, EaseExponentialOut, AccelAmplitude, CardinalSplineBy, CCBRotateTo, FlipY, Shaky3D, FadeOutDownTiles, EaseExponentialIn, CCBSoundEffect, Repeat, AccelDeccelAmplitude, FadeOutUpTiles, FlipX, CardinalSplineTo, Ripple3D, CCBSetSpriteFrame, EaseInOut, TiledGrid3DAction, FadeOutBLTiles, EaseOut, RemoveSelf, Sequence, FadeOutTRTiles, 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.
|
inline |
get duration in seconds of the action
|
inlineoverridevirtual |
returns a new action that performs the exactly the reverse action
Reimplemented from 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, CatmullRomTo, RepeatForever, EaseExponentialInOut, Place, CCBRotateXTo, EaseExponentialOut, AccelAmplitude, CardinalSplineBy, CCBRotateTo, FlipY, EaseExponentialIn, CCBSoundEffect, Repeat, AccelDeccelAmplitude, CardinalSplineTo, FlipX, CCBSetSpriteFrame, EaseInOut, EaseOut, RemoveSelf, Sequence, EaseIn, ToggleVisibility, Hide, EaseRateAction, ProgressFromTo, ActionInterval, Show, ActionTween, Animate3D, ActionCamera, ActionEase, ActionInstant, GridAction, and ProgressTo.
|
inline |
set duration in seconds of the action
CC_CONSTRUCTOR_ACCESS __pad0__ |