#include <CCActionTimeline.h>
Public Member Functions | |
ActionTimeline () | |
virtual | ~ActionTimeline () |
virtual bool | init () |
virtual void | gotoFrameAndPlay (int startIndex) |
Goto the specified frame index, and start playing from this index. More... | |
local | gotoFrameAndPlay ( local startIndex) |
Goto the specified frame index, and start playing from this index. More... | |
virtual void | gotoFrameAndPlay (int startIndex, bool loop) |
Goto the specified frame index, and start playing from this index. More... | |
local | gotoFrameAndPlay ( local startIndex, local loop) |
Goto the specified frame index, and start playing from this index. More... | |
virtual void | gotoFrameAndPlay (int startIndex, int endIndex, bool loop) |
Goto the specified frame index, and start playing from start index, end at end index. More... | |
virtual void | gotoFrameAndPlay (int startIndex, int endIndex, int currentFrameIndex, bool loop) |
Goto the specified frame index, and start playing from start index, end at end index. More... | |
virtual void | gotoFrameAndPause (int startIndex) |
Goto the specified frame index, and pause at this index. More... | |
local | gotoFrameAndPause ( local startIndex) |
Goto the specified frame index, and pause at this index. More... | |
virtual void | pause () |
Pause the animation. More... | |
virtual void | resume () |
Resume the animation. More... | |
virtual bool | isPlaying () const |
Whether or not Action is playing. More... | |
virtual void | setTimeSpeed (float speed) |
Set the animation speed, this will speed up or slow down the speed. More... | |
virtual float | getTimeSpeed () const |
Get current animation speed. More... | |
local | getTimeSpeed () |
Get current animation speed. More... | |
virtual void | setDuration (int duration) |
duration of the whole action More... | |
local | setDuration ( local duration) |
duration of the whole action More... | |
virtual int | getDuration () const |
virtual int | getStartFrame () const |
Start frame index of this action. More... | |
virtual int | getEndFrame () const |
End frame of this action. More... | |
virtual void | setCurrentFrame (int frameIndex) |
Set current frame index, this will cause action plays to this frame. More... | |
virtual int | getCurrentFrame () const |
Get current frame. More... | |
virtual void | addTimeline (Timeline *timeline) |
add Timeline to ActionTimeline More... | |
local | addTimeline ( local timeline) |
add Timeline to ActionTimeline More... | |
virtual void | removeTimeline (Timeline *timeline) |
local | removeTimeline ( local timeline) |
virtual const cocos2d::Vector < Timeline * > & | getTimelines () const |
local | getTimelines () |
void | setFrameEventCallFunc (std::function< void(Frame *)> listener) |
Set ActionTimeline's frame event callback function. More... | |
local | setFrameEventCallFunc ( local listener) |
Set ActionTimeline's frame event callback function. More... | |
void | clearFrameEventCallFunc () |
virtual ActionTimeline * | clone () const override |
Inherit from Action. More... | |
local | clone () |
Inherit from Action. More... | |
virtual ActionTimeline * | reverse () const override |
Returns a reverse of ActionTimeline. More... | |
local | reverse () |
Returns a reverse of ActionTimeline. More... | |
virtual void | step (float delta) override |
called every frame with it's delta time. DON'T override unless you know what you are doing. More... | |
local | step ( local delta) |
called every frame with it's delta time. DON'T override unless you know what you are doing. More... | |
virtual void | startWithTarget (cocos2d::Node *target) override |
called before the action start. It will also set the target. More... | |
virtual bool | isDone () const override |
return true if the action has finished More... | |
Public Member Functions inherited from Action | |
virtual std::string | description () const |
virtual void | stop () |
called after the action has finished. More... | |
var | stop () |
called after the action has finished. More... | |
local | stop () |
called after the action has finished. More... | |
virtual void | update (float time) |
called once per frame. More... | |
local | update ( local time) |
called once per frame. More... | |
Node * | getTarget () const |
var | getTarget () |
local | getTarget () |
void | setTarget (Node *target) |
The action will modify the target properties. More... | |
var | setTarget ( var target) |
The action will modify the target properties. More... | |
local | setTarget ( local target) |
The action will modify the target properties. More... | |
Node * | getOriginalTarget () const |
var | getOriginalTarget () |
local | getOriginalTarget () |
void | setOriginalTarget (Node *originalTarget) |
Set the original target, since target can be nil. More... | |
var | setOriginalTarget ( var originalTarget) |
Set the original target, since target can be nil. More... | |
local | setOriginalTarget ( local originalTarget) |
Set the original target, since target can be nil. More... | |
int | getTag () const |
var | getTag () |
local | getTag () |
void | setTag (int tag) |
var | setTag ( var tag) |
local | setTag ( local tag) |
Public Member Functions inherited from Ref | |
void | retain () |
Retains the ownership. More... | |
void | release () |
Releases the ownership immediately. More... | |
Ref * | autorelease () |
Releases the ownership sometime soon automatically. More... | |
unsigned int | getReferenceCount () const |
Returns the Ref's current reference count. More... | |
virtual | ~Ref () |
Public Member Functions inherited from Clonable | |
virtual | ~Clonable () |
Ref * | copy () const |
returns a copy of the Ref. More... | |
var | copy () |
returns a copy of the Ref. More... | |
local | copy () |
returns a copy of the Ref. More... | |
Static Public Member Functions | |
static ActionTimeline * | create () |
local | create () |
Protected Member Functions | |
virtual void | gotoFrame (int frameIndex) |
local | gotoFrame ( local frameIndex) |
virtual void | stepToFrame (int frameIndex) |
local | stepToFrame ( local frameIndex) |
virtual void | emitFrameEvent (Frame *frame) |
emit frame event, call it when enter a frame More... | |
Protected Member Functions inherited from Action | |
Action () | |
Action () | |
Action () | |
virtual | ~Action () |
local | ~Action () |
Protected Member Functions inherited from Ref | |
Ref () | |
Constructor. More... | |
Protected Attributes | |
std::map< int, cocos2d::Vector < Timeline * > > | _timelineMap |
cocos2d::Vector< Timeline * > | _timelineList |
int | _duration |
double | _time |
float | _timeSpeed |
float | _frameInternal |
bool | _playing |
int | _currentFrame |
int | _startFrame |
int | _endFrame |
bool | _loop |
std::function< void(Frame *)> | _frameEventListener |
local | _frameEventListener |
Protected Attributes inherited from Action | |
Node * | _originalTarget |
var | _originalTarget |
Node * | _target |
The "target". More... | |
int | _tag |
The action tag. More... | |
var | _tag |
The action tag. More... | |
Protected Attributes inherited from Ref | |
unsigned int | _referenceCount |
count of references More... | |
Friends | |
class | Frame |
Additional Inherited Members | |
Static Public Attributes inherited from Action | |
static const int | INVALID_TAG = -1 |
Default tag used for all the actions. More... | |
var | INVALID_TAG = -1 |
Default tag used for all the actions. More... | |
local | INVALID_TAG = -1 |
Default tag used for all the actions. More... | |
ActionTimeline | ( | ) |
local ActionTimeline | ( | ) |
|
virtual |
|
virtual |
|
virtual |
add Timeline to ActionTimeline
|
virtual |
add Timeline to ActionTimeline
void clearFrameEventCallFunc | ( | ) |
local clearFrameEventCallFunc | ( | ) |
|
overridevirtual |
|
overridevirtual |
|
static |
|
static |
|
protectedvirtual |
emit frame event, call it when enter a frame
|
protectedvirtual |
emit frame event, call it when enter a frame
|
inlinevirtual |
Get current frame.
|
inlinevirtual |
Get current frame.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
End frame of this action.
When action play to this frame, if action is not loop, then it will stop, or it will play from start frame again.
|
inlinevirtual |
End frame of this action.
When action play to this frame, if action is not loop, then it will stop, or it will play from start frame again.
|
inlinevirtual |
Start frame index of this action.
|
inlinevirtual |
Start frame index of this action.
|
inlinevirtual |
|
inlinevirtual |
|
inlinevirtual |
Get current animation speed.
|
inlinevirtual |
Get current animation speed.
|
protectedvirtual |
|
protectedvirtual |
|
virtual |
Goto the specified frame index, and pause at this index.
startIndex | The animation will pause at this index. |
|
virtual |
Goto the specified frame index, and pause at this index.
startIndex | The animation will pause at this index. |
|
virtual |
Goto the specified frame index, and start playing from this index.
startIndex | The animation will play from this index. |
|
virtual |
Goto the specified frame index, and start playing from this index.
startIndex | The animation will play from this index. |
|
virtual |
Goto the specified frame index, and start playing from this index.
startIndex | The animation will play from this index. |
loop | Whether or not the animation need loop. |
|
virtual |
Goto the specified frame index, and start playing from this index.
startIndex | The animation will play from this index. |
loop | Whether or not the animation need loop. |
|
virtual |
Goto the specified frame index, and start playing from start index, end at end index.
startIndex | The animation will play from this index. |
endIndex | The animation will end at this index. |
loop | Whether or not the animation need loop. |
|
virtual |
Goto the specified frame index, and start playing from start index, end at end index.
startIndex | The animation will play from this index. |
endIndex | The animation will end at this index. |
loop | Whether or not the animation need loop. |
|
virtual |
Goto the specified frame index, and start playing from start index, end at end index.
startIndex | The animation will play from this index. |
endIndex | The animation will end at this index. |
currentFrameIndex | set current frame index. |
loop | Whether or not the animation need loop. |
|
virtual |
Goto the specified frame index, and start playing from start index, end at end index.
startIndex | The animation will play from this index. |
endIndex | The animation will end at this index. |
currentFrameIndex | set current frame index. |
loop | Whether or not the animation need loop. |
|
virtual |
|
virtual |
|
inlineoverridevirtual |
return true if the action has finished
Reimplemented from Action.
|
inlineoverridevirtual |
return true if the action has finished
Reimplemented from Action.
|
virtual |
Whether or not Action is playing.
|
virtual |
Whether or not Action is playing.
|
virtual |
Pause the animation.
|
virtual |
Pause the animation.
|
virtual |
|
virtual |
|
virtual |
Resume the animation.
|
virtual |
Resume the animation.
|
inlineoverridevirtual |
|
inlineoverridevirtual |
|
virtual |
Set current frame index, this will cause action plays to this frame.
|
virtual |
Set current frame index, this will cause action plays to this frame.
|
inlinevirtual |
duration of the whole action
|
inlinevirtual |
duration of the whole action
void setFrameEventCallFunc | ( | std::function< void(Frame *)> | listener | ) |
Set ActionTimeline's frame event callback function.
local setFrameEventCallFunc | ( | local | listener | ) |
Set ActionTimeline's frame event callback function.
|
inlinevirtual |
Set the animation speed, this will speed up or slow down the speed.
|
inlinevirtual |
Set the animation speed, this will speed up or slow down the speed.
|
overridevirtual |
called before the action start. It will also set the target.
Reimplemented from Action.
|
overridevirtual |
called before the action start. It will also set the target.
Reimplemented from Action.
|
overridevirtual |
called every frame with it's delta time. DON'T override unless you know what you are doing.
Reimplemented from Action.
|
overridevirtual |
called every frame with it's delta time. DON'T override unless you know what you are doing.
Reimplemented from Action.
|
protectedvirtual |
|
protectedvirtual |
|
friend |
|
friend |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |