#include <CCProcessBase.h>
Public Member Functions | |
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 |
virtual void | setAnimationInternal (float animationInternal) |
virtual float | getAnimationInternal () const |
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) |
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 | _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... | |
TweenType | _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... | |
unsigned int | _autoReleaseCount |
count of autorelease More... | |
Additional Inherited Members | |
Public Attributes inherited from Object | |
unsigned int | _ID |
object id, ScriptSupport need public _ID More... | |
int | _luaID |
Lua reference id. More... | |
ProcessBase | ( | void | ) |
|
virtual |
|
inlinevirtual |
|
virtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
protectedvirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Pause the Process.
Reimplemented in ArmatureAnimation.
|
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 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.
|
inlinevirtual |
Reimplemented in ArmatureAnimation.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
|
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.