cocos2d-x  3.0-beta2
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Clonable Class Referenceabstract

Interface that defines how to clone an object. More...

#include <CCObject.h>

Inheritance diagram for Clonable:
__Array __Bool __Dictionary __Double __Float __Integer __String Action Animation AnimationFrame PointArray SpriteFrame

Public Member Functions

virtual Clonableclone () const =0
 returns a copy of the object More...
 
var clone ()
 returns a copy of the object More...
 
local clone ()
 returns a copy of the object More...
 
virtual ~Clonable ()
Objectcopy () const
 returns a copy of the object. More...
 
var copy ()
 returns a copy of the object. More...
 
local copy ()
 returns a copy of the object. More...
 

Detailed Description

Interface that defines how to clone an object.

Constructor & Destructor Documentation

virtual ~Clonable ( )
inlinevirtual

Member Function Documentation

virtual Clonable* clone ( ) const
pure virtual

returns a copy of the object

Implemented in TargetedAction, Animate, ReverseTime, DelayTime, TintBy, TintTo, FadeTo, FadeOut, FadeIn, Blink, ScaleBy, ScaleTo, BezierTo, EaseBackInOut, EaseBackOut, BezierBy, EaseBackIn, JumpTo, EaseBounceInOut, __Array, JumpBy, EaseBounceOut, SkewBy, EaseBounceIn, EaseBounce, __CCCallFuncO, SkewTo, __Dictionary, EaseElasticInOut, MoveTo, __CCCallFuncND, EaseElasticOut, EaseCubicActionInOut, MoveBy, EaseCubicActionOut, EaseElasticIn, CallFuncN, SplitCols, EaseCubicActionIn, RotateBy, EaseElastic, SplitRows, EaseCircleActionInOut, Twirl, EaseSineInOut, JumpTiles3D, EaseCircleActionOut, RotateTo, CallFunc, ReuseGrid, EaseSineOut, EaseCircleActionIn, CatmullRomBy, CCBEaseInstant, StopGrid, Waves, WavesTiles3D, Spawn, EaseSineIn, CCBRotateYTo, EaseQuinticActionInOut, CatmullRomTo, DeccelAmplitude, Liquid, CCBRotateXTo, Follow, Place, EaseExponentialInOut, EaseQuinticActionOut, TurnOffTiles, CardinalSplineBy, CCBRotateTo, Animation, RepeatForever, AccelAmplitude, EaseExponentialOut, EaseQuinticActionIn, Shaky3D, FlipY, FadeOutDownTiles, CCBSoundEffect, __String, EaseExponentialIn, EaseQuarticActionInOut, Speed, CardinalSplineTo, FadeOutUpTiles, AccelDeccelAmplitude, CCBSetSpriteFrame, FlipX, Ripple3D, EaseQuarticActionOut, EaseInOut, Repeat, TiledGrid3DAction, FadeOutBLTiles, RemoveSelf, SpriteFrame, FiniteTimeAction, EaseQuarticActionIn, EaseOut, FadeOutTRTiles, Lens3D, OrbitCamera, PointArray, ToggleVisibility, EaseQuadraticActionInOut, EaseIn, Sequence, Grid3DAction, FlipY3D, ShuffleTiles, Hide, AnimationFrame, EaseQuadraticActionOut, EaseRateAction, FlipX3D, ProgressFromTo, ActionTween, ActionInterval, LuaCallFunc, Show, EaseQuadraticActionIn, ShatteredTiles3D, __Integer, ActionCamera, Waves3D, __Bool, Action, __Double, __Float, ActionEase, ActionInstant, PageTurn3D, GridAction, ProgressTo, ShakyTiles3D, and EaseBezierAction.

var clone ( )
pure virtual

returns a copy of the object

Implemented in TargetedAction, Animate, ReverseTime, DelayTime, TintBy, TintTo, FadeTo, FadeOut, FadeIn, Blink, ScaleBy, ScaleTo, BezierTo, EaseBackInOut, EaseBackOut, BezierBy, EaseBackIn, JumpTo, EaseBounceInOut, __Array, JumpBy, EaseBounceOut, SkewBy, EaseBounceIn, EaseBounce, __CCCallFuncO, SkewTo, __Dictionary, EaseElasticInOut, MoveTo, __CCCallFuncND, EaseElasticOut, EaseCubicActionInOut, MoveBy, EaseCubicActionOut, EaseElasticIn, CallFuncN, SplitCols, EaseCubicActionIn, RotateBy, EaseElastic, SplitRows, EaseCircleActionInOut, Twirl, EaseSineInOut, JumpTiles3D, EaseCircleActionOut, RotateTo, CallFunc, ReuseGrid, EaseSineOut, EaseCircleActionIn, CatmullRomBy, CCBEaseInstant, StopGrid, Waves, WavesTiles3D, Spawn, EaseSineIn, CCBRotateYTo, EaseQuinticActionInOut, CatmullRomTo, DeccelAmplitude, Liquid, CCBRotateXTo, Follow, Place, EaseExponentialInOut, EaseQuinticActionOut, TurnOffTiles, CardinalSplineBy, CCBRotateTo, Animation, RepeatForever, AccelAmplitude, EaseExponentialOut, EaseQuinticActionIn, Shaky3D, FlipY, FadeOutDownTiles, CCBSoundEffect, __String, EaseExponentialIn, EaseQuarticActionInOut, Speed, CardinalSplineTo, FadeOutUpTiles, AccelDeccelAmplitude, CCBSetSpriteFrame, FlipX, Ripple3D, EaseQuarticActionOut, EaseInOut, Repeat, TiledGrid3DAction, FadeOutBLTiles, RemoveSelf, SpriteFrame, FiniteTimeAction, EaseQuarticActionIn, EaseOut, FadeOutTRTiles, Lens3D, OrbitCamera, PointArray, ToggleVisibility, EaseQuadraticActionInOut, EaseIn, Sequence, Grid3DAction, FlipY3D, ShuffleTiles, Hide, AnimationFrame, EaseQuadraticActionOut, EaseRateAction, FlipX3D, ProgressFromTo, ActionTween, ActionInterval, LuaCallFunc, Show, EaseQuadraticActionIn, ShatteredTiles3D, __Integer, ActionCamera, Waves3D, __Bool, Action, __Double, __Float, ActionEase, ActionInstant, PageTurn3D, GridAction, ProgressTo, ShakyTiles3D, and EaseBezierAction.

local clone ( )
pure virtual

returns a copy of the object

Implemented in TargetedAction, Animate, ReverseTime, DelayTime, TintBy, TintTo, FadeTo, FadeOut, FadeIn, Blink, ScaleBy, ScaleTo, BezierTo, EaseBackInOut, EaseBackOut, BezierBy, EaseBackIn, JumpTo, EaseBounceInOut, __Array, JumpBy, EaseBounceOut, SkewBy, EaseBounceIn, EaseBounce, __CCCallFuncO, SkewTo, __Dictionary, EaseElasticInOut, MoveTo, __CCCallFuncND, EaseElasticOut, EaseCubicActionInOut, MoveBy, EaseCubicActionOut, EaseElasticIn, CallFuncN, SplitCols, EaseCubicActionIn, RotateBy, EaseElastic, SplitRows, EaseCircleActionInOut, Twirl, EaseSineInOut, JumpTiles3D, EaseCircleActionOut, RotateTo, CallFunc, ReuseGrid, EaseSineOut, EaseCircleActionIn, CatmullRomBy, CCBEaseInstant, StopGrid, Waves, WavesTiles3D, Spawn, EaseSineIn, CCBRotateYTo, EaseQuinticActionInOut, CatmullRomTo, DeccelAmplitude, Liquid, CCBRotateXTo, Follow, Place, EaseExponentialInOut, EaseQuinticActionOut, TurnOffTiles, CardinalSplineBy, CCBRotateTo, Animation, RepeatForever, AccelAmplitude, EaseExponentialOut, EaseQuinticActionIn, Shaky3D, FlipY, FadeOutDownTiles, CCBSoundEffect, __String, EaseExponentialIn, EaseQuarticActionInOut, Speed, CardinalSplineTo, FadeOutUpTiles, AccelDeccelAmplitude, CCBSetSpriteFrame, FlipX, Ripple3D, EaseQuarticActionOut, EaseInOut, Repeat, TiledGrid3DAction, FadeOutBLTiles, RemoveSelf, SpriteFrame, FiniteTimeAction, EaseQuarticActionIn, EaseOut, FadeOutTRTiles, Lens3D, OrbitCamera, PointArray, ToggleVisibility, EaseQuadraticActionInOut, EaseIn, Sequence, Grid3DAction, FlipY3D, ShuffleTiles, Hide, AnimationFrame, EaseQuadraticActionOut, EaseRateAction, FlipX3D, ProgressFromTo, ActionTween, ActionInterval, LuaCallFunc, Show, EaseQuadraticActionIn, ShatteredTiles3D, __Integer, ActionCamera, Waves3D, __Bool, Action, __Double, __Float, ActionEase, ActionInstant, PageTurn3D, GridAction, ProgressTo, ShakyTiles3D, and EaseBezierAction.

Object* copy ( ) const
inline

returns a copy of the object.

Deprecated:
Use clone() instead
var copy ( )
inline

returns a copy of the object.

Deprecated:
Use clone() instead
local copy ( )
inline

returns a copy of the object.

Deprecated:
Use clone() instead

The documentation for this class was generated from the following file: