#include <CCProcessBase.h>
Public Member Functions | |
| ProcessBase (void) | |
| ~ProcessBase (void) | |
| virtual void | play (void *animation, 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 | gotoFrame (int frameIndex) |
| 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 Object | |
| Object () | |
| Constructor. More... | |
| virtual | ~Object () |
| void | release () |
| Release the ownership immediately. More... | |
| void | retain () |
| Retains the ownership. More... | |
| Object * | autorelease () |
| Release the ownership sometime soon automatically. More... | |
| bool | isSingleReference () const |
| Returns a boolean value that indicates whether there is only one reference to the object. More... | |
| unsigned int | retainCount () const |
| Returns the object's current reference count. More... | |
| virtual bool | isEqual (const Object *object) |
| Returns a boolean value that indicates whether this object and a given object are equal. More... | |
| virtual void | acceptVisitor (DataVisitor &visitor) |
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... | |
| virtual float | getAnimationInternal (void)\n\n public |
| getAnimationInternal More... | |
Public Attributes inherited from Object | |
| unsigned int | _ID |
| object id, ScriptSupport need public _ID More... | |
| int | _luaID |
| Lua reference id. More... | |
Protected Member Functions | |
| virtual void | updateHandler () |
| Update(float dt) will call this handler, you can handle your logic here. More... | |
Protected Attributes | |
| float | _processScale |
| Scale the process speed. More... | |
| bool | _isPause |
| Set and get whether the aniamtion is pause. More... | |
| bool | _isComplete |
| Set and get whether the aniamtion is complete. More... | |
| bool | _isPlaying |
| Set and get whether the aniamtion is playing. More... | |
| float | _currentPercent |
| Current percent this process arrived. More... | |
| int | _rawDuration |
| The raw duration. More... | |
| AnimationType | _loopType |
| The animation whether or not loop. More... | |
| CCTweenType | _tweenEasing |
| The tween easing effect. More... | |
| float | _animationInternal |
| The animation update speed. More... | |
| int | _durationTween |
| The durantion frame count will run. More... | |
| float | _currentFrame |
| Current frame this process arrived, this frame is tween frame. More... | |
| int | _curFrameIndex |
| Frame index it the time line. More... | |
| int | _nextFrameIndex |
| Next frame this process need run to. More... | |
| bool | _isLoopBack |
Protected Attributes inherited from Object | |
| unsigned int | _reference |
| count of references More... | |
| var | _reference |
| count of references More... | |
| local | _reference |
| count of references More... | |
| unsigned int | _autoReleaseCount |
| count of autorelease More... | |
| var | _autoReleaseCount |
| count of autorelease More... | |
| local | _autoReleaseCount |
| count of autorelease More... | |
| ProcessBase | ( | void | ) |
| ~ProcessBase | ( | void | ) |
|
virtual |
|
virtual |
|
virtual |
Pause the Process.
Reimplemented in ArmatureAnimation.
|
virtual |
Play animation by animation name.
| animation | It will not used in the ProcessBase Class |
| 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 MovementData 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 MovementData get from flash design panel
| loop | Whether the animation is loop loop < 0 : use the value from MovementData get from flash design panel
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 flash design panel
-1 : fade out
0 : line
1 : fade in
2 : fade in and out |
|
virtual |
Resume the Process.
Reimplemented in ArmatureAnimation.
|
virtual |
Stop the Process.
Reimplemented in ArmatureAnimation.
|
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 Object.
Reimplemented in ArmatureAnimation.
|
inlineprotectedvirtual |
Update(float dt) will call this handler, you can handle your logic here.
Reimplemented in ArmatureAnimation, and Tween.
|
protected |
The animation update speed.
|
protected |
Frame index it the time line.
|
protected |
Current frame this process arrived, this frame is tween frame.
|
protected |
Current percent this process arrived.
|
protected |
The durantion frame count will run.
|
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 |
Next frame this process need run to.
|
protected |
Scale the process speed.
|
protected |
The raw duration.
|
protected |
The tween easing effect.
| virtual float getAnimationInternal(void)\n\n public |
getAnimationInternal
setAnimationInternal
| 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