#include <CCProcessBase.h>
Public Member Functions | |
CCProcessBase (void) | |
~CCProcessBase (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 () |
Public Member Functions inherited from CCObject | |
CCObject (void) | |
virtual | ~CCObject (void) |
void | release (void) |
void | retain (void) |
CCObject * | autorelease (void) |
CCObject * | copy (void) |
bool | isSingleReference (void) const |
unsigned int | retainCount (void) const |
virtual bool | isEqual (const CCObject *pObject) |
virtual void | acceptVisitor (CCDataVisitor &visitor) |
Public Member Functions inherited from CCCopying | |
virtual CCObject * | copyWithZone (CCZone *pZone) |
Public Attributes | |
virtual float | getProcessScale (void)\n\n public |
getProcessScale More... | |
virtual bool | getIsPause (void)\n\n public |
getIsPause More... | |
virtual bool | getIsComplete (void)\n\n public |
getIsComplete More... | |
virtual bool | getIsPlaying (void)\n\n public |
getIsPlaying More... | |
virtual float | getCurrentPercent (void)\n\n public |
getCurrentPercent More... | |
virtual int | getRawDuration (void)\n\n public |
getRawDuration More... | |
virtual AnimationType | getLoopType (void)\n\n public |
getLoopType More... | |
virtual CCTweenType | getTweenEasing (void)\n\n public |
getTweenEasing More... | |
Public Attributes inherited from CCObject | |
unsigned int | m_uID |
int | m_nLuaID |
Protected Member Functions | |
virtual void | gotoFrame (int frameIndex) |
virtual void | updateHandler () |
Update(float dt) will call this handler, you can handle your logic here. More... | |
Protected Attributes | |
float | m_fProcessScale |
Scale the process speed. More... | |
bool | m_bIsPause |
Set and get whether the aniamtion is pause. More... | |
bool | m_bIsComplete |
Set and get whether the aniamtion is complete. More... | |
bool | m_bIsPlaying |
Set and get whether the aniamtion is playing. More... | |
float | m_fCurrentPercent |
Current percent this process arrived. More... | |
int | m_iRawDuration |
The raw duration. More... | |
AnimationType | m_eLoopType |
The animation whether or not loop. More... | |
CCTweenType | m_eTweenEasing |
The tween easing effect. More... | |
int | m_iDurationTween |
The durantion frame count will run. More... | |
float | m_fCurrentFrame |
Current frame this process arrived, this frame is tween frame. More... | |
int | m_iCurFrameIndex |
Frame index it the time line. More... | |
int | m_iNextFrameIndex |
Next frame this process need run to. More... | |
bool | m_bIsLoopBack |
float | m_fAnimationInternal |
The animation update speed. More... | |
Protected Attributes inherited from CCObject | |
unsigned int | m_uReference |
unsigned int | m_uAutoReleaseCount |
CCProcessBase | ( | void | ) |
~CCProcessBase | ( | void | ) |
|
virtual |
|
protectedvirtual |
|
virtual |
Pause the Process.
Reimplemented in CCArmatureAnimation.
|
virtual |
Play animation by animation name.
durationTo | The frames between two animation changing-over. It's meaning is changing to this animation need how many frames |
-1 : use the value from CCMovementData get from flash design panel
durationTween | The frame count you want to play in the game. if _durationTween is 80, then the animation will played 80 frames in a loop |
-1 : use the value from CCMovementData get from flash design panel
loop | Whether the animation is loop loop < 0 : use the value from CCMovementData get from flash design panel loop = 0 : this animation is not loop loop > 0 : this animation is loop |
tweenEasing | CCTween easing is used for calculate easing effect TWEEN_EASING_MAX : use the value from CCMovementData get from flash design panel -1 : fade out 0 : line 1 : fade in 2 : fade in and out |
|
virtual |
Resume the Process.
Reimplemented in CCArmatureAnimation.
|
virtual |
Stop the Process.
Reimplemented in CCArmatureAnimation.
|
virtual |
You should never call this function, unless you know what you do Update the Process, include current process, current frame and son on.
The | duration since last update |
Reimplemented from CCObject.
Reimplemented in CCArmatureAnimation.
|
inlineprotectedvirtual |
Update(float dt) will call this handler, you can handle your logic here.
Reimplemented in CCArmatureAnimation, and CCTween.
virtual float getCurrentPercent(void)\n\n public |
getCurrentPercent
setCurrentPercent
virtual bool getIsComplete(void)\n\n public |
getIsComplete
setIsComplete
virtual bool getIsPause(void)\n\n public |
getIsPause
setIsPause
virtual bool getIsPlaying(void)\n\n public |
getIsPlaying
setIsPlaying
virtual AnimationType getLoopType(void)\n\n public |
getLoopType
setLoopType
virtual float getProcessScale(void)\n\n public |
getProcessScale
setProcessScale
virtual int getRawDuration(void)\n\n public |
getRawDuration
setRawDuration
virtual CCTweenType getTweenEasing(void)\n\n public |
getTweenEasing
setTweenEasing
|
protected |
Set and get whether the aniamtion is complete.
|
protected |
|
protected |
Set and get whether the aniamtion is pause.
|
protected |
Set and get whether the aniamtion is playing.
|
protected |
The animation whether or not loop.
|
protected |
The tween easing effect.
|
protected |
The animation update speed.
|
protected |
Current frame this process arrived, this frame is tween frame.
|
protected |
Current percent this process arrived.
|
protected |
Scale the process speed.
|
protected |
Frame index it the time line.
|
protected |
The durantion frame count will run.
|
protected |
Next frame this process need run to.
|
protected |
The raw duration.