#include <CCTween.h>
|
| Tween (void) |
virtual | ~Tween (void) |
virtual bool | init (Bone *bone) |
| Init with a Bone. More...
|
|
virtual void | play (MovementBoneData *movementBoneData, int durationTo, int durationTween, int loop, int tweenEasing) |
| Start the Process. More...
|
|
void | setAnimation (ArmatureAnimation *animation) |
ArmatureAnimation * | getAnimation () const |
virtual void | gotoAndPlay (int frameIndex) |
virtual void | gotoAndPause (int frameIndex) |
virtual void | setMovementBoneData (MovementBoneData *data) |
virtual const MovementBoneData * | getMovementBoneData () const |
| ProcessBase (void) |
virtual | ~ProcessBase (void) |
virtual void | play (int durationTo, int durationTween, int loop, int tweenEasing) |
| Play animation by animation name. More...
|
|
virtual void | pause () |
| Pause the Process. More...
|
|
virtual void | resume () |
| Resume the Process. More...
|
|
virtual void | stop () |
| Stop the Process. More...
|
|
virtual void | update (float dt) |
| You should never call this function, unless you know what you do Update the Process, include current process, current frame and son on. More...
|
|
virtual int | getCurrentFrameIndex () |
virtual void | setProcessScale (float processScale) |
virtual float | getProcessScale () const |
virtual void | setIsPause (bool pause) |
virtual bool | isPause () const |
virtual void | setIsComplete (bool complete) |
virtual bool | isComplete () const |
virtual void | setIsPlaying (bool playing) |
virtual bool | isPlaying () const |
virtual float | getCurrentPercent () const |
virtual int | getRawDuration () const |
void | retain () |
| Retains the ownership. More...
|
|
void | release () |
| Release the ownership immediately. More...
|
|
Ref * | autorelease () |
| Release the ownership sometime soon automatically. More...
|
|
unsigned int | getReferenceCount () const |
| Returns the Ref's current reference count. More...
|
|
virtual | ~Ref () |
virtual void arriveKeyFrame |
( |
FrameData * |
keyFrameData) | |
|
|
protectedvirtual |
Update display index and process the key frame event when arrived a key frame.
virtual void gotoAndPause |
( |
int |
frameIndex) | |
|
|
virtual |
virtual void gotoAndPlay |
( |
int |
frameIndex) | |
|
|
virtual |
virtual bool init |
( |
Bone * |
bone) | |
|
|
virtual |
Init with a Bone.
- Parameters
-
virtual void play |
( |
MovementBoneData * |
movementBoneData, |
|
|
int |
durationTo, |
|
|
int |
durationTween, |
|
|
int |
loop, |
|
|
int |
tweenEasing |
|
) |
| |
|
virtual |
Start the Process.
- Parameters
-
movementBoneData | the MovementBoneData include all FrameData |
durationTo | the number of frames changing to this animation needs. |
durationTween | the number of frames this animation actual last. |
loop | whether the animation is loop loop < 0 : use the value from MovementData get from Action Editor
loop = 0 : this animation is not loop
loop > 0 : this animation is loop
|
tweenEasing | tween easing is used for calculate easing effect TWEEN_EASING_MAX : use the value from MovementData get from Action Editor
-1 : fade out
0 : line
1 : fade in
2 : fade in and out |
Calculate the between value of _from and _to, and give it to between frame data.
virtual void tweenColorTo |
( |
float |
percent, |
|
|
FrameData * |
node |
|
) |
| |
|
protectedvirtual |
According to the percent to calculate current color with tween effect.
According to the percent to calculate current FrameData with tween effect.
virtual float updateFrameData |
( |
float |
currentPercent) | |
|
|
protectedvirtual |
Calculate which frame arrived, and if current frame have event, then call the event listener.
virtual void updateHandler |
( |
) | |
|
|
protectedvirtual |
Update(float dt) will call this handler, you can handle your logic here.
Reimplemented from ProcessBase.
The next frame index in FrameList of MovementBoneData, it's different from m_iFrameIndex.
To frame data, used for calculate between value.
Dedermine which tween effect current frame use.
Between frame data, used for calculate current FrameData(m_pNode) value.
TweenType _frameTweenEasing |
|
protected |
A weak reference to the Bone.
The computational tween frame data, //! A weak reference to the Bone's tweenData.
From frame data, used for calculate between value.
The current frame index in FrameList of MovementBoneData, it's different from m_iFrameIndex.
Current key frame will last _betweenDuration frames.
The documentation for this class was generated from the following file:
- /Users/cocos2d/MyWork/cocos2d-x-develop/cocos/editor-support/cocostudio/CCTween.h