#include <CCActionTimeline.h>
Inheritance diagram for ActionTimeline:
Public Member Functions
Goto the specified frame index, and start playing from this index.
More...
Goto the specified frame index, and start playing from this index.
More...
Goto the specified frame index, and start playing from this index.
More...
Goto the specified frame index, and start playing from this index.
More...
Goto the specified frame index, and start playing from this index.
More...
Goto the specified frame index, and start playing from this index.
More...
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...
Goto the specified frame index, and pause at this index.
More...
Goto the specified frame index, and pause at this index.
More...
Goto the specified frame index, and pause at this index.
More...
Whether or not Action is playing.
More...
Set the animation speed, this will speed up or slow down the speed.
More...
Get current animation speed.
More...
duration of the whole action
More...
duration of the whole action
More...
Start frame index of this action.
More...
Start frame index of this action.
More...
Set current frame index, this will cause action plays to this frame.
More...
Set current frame index, this will cause action plays to this frame.
More...
Set current frame index, this will cause action plays to this frame.
More...
Set action's frame event callback function.
More...
Set action's frame event callback function.
More...
Inherit from cocos2d::Action.
More...
Inherit from cocos2d::Action.
More...
virtual void
step (float delta)
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...
called before the action start. It will also set the target.
More...
called before the action start. It will also set the target.
More...
called before the action start. It will also set the target.
More...
return true if the action has finished
More...
Returns a user assigned CCDictionary.
More...
Returns a user assigned CCDictionary.
More...
Returns a user assigned CCDictionary.
More...
Returns a user assigned CCDictionary.
More...
- Public Member Functions inherited from
CCAction
called after the action has finished.
More...
virtual void
update (float time)
The action will modify the target properties.
More...
The action will modify the target properties.
More...
Set the original target, since target can be nil.
More...
- Public Member Functions inherited from
CCObject
Static Public Member Functions
- Static Public Member Functions inherited from
CCAction
Protected Member Functions
emit frame event, call it when enter a frame
More...
Protected Attributes
- Protected Attributes inherited from
CCAction
- Protected Attributes inherited from
CCObject
Friends
Additional Inherited Members
- Public Attributes inherited from
CCObject
Constructor & Destructor Documentation
Member Function Documentation
virtual void addTimeline
(
Timeline *
timeline )
virtual
var addTimeline
(
var
timeline )
virtual
local addTimeline
(
local
timeline )
virtual
void clearFrameEventCallFunc
(
)
var clearFrameEventCallFunc
(
)
local clearFrameEventCallFunc
(
)
void emitFrameEvent
(
Frame *
frame )
protected
emit frame event, call it when enter a frame
var emitFrameEvent
(
var
frame )
protected
emit frame event, call it when enter a frame
local emitFrameEvent
(
local
frame )
protected
emit frame event, call it when enter a frame
var foreachNodeDescendant
(
var
parent )
protected
local foreachNodeDescendant
(
local
parent )
protected
virtual int getCurrentFrame
(
)
const
inlinevirtual
var getCurrentFrame
(
)
inlinevirtual
local getCurrentFrame
(
)
inlinevirtual
virtual int getDuration
(
)
const
inlinevirtual
var getDuration
(
)
inlinevirtual
local getDuration
(
)
inlinevirtual
virtual int getEndFrame
(
)
const
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.
var getEndFrame
(
)
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.
local getEndFrame
(
)
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.
Returns a user assigned CCDictionary.
- Returns
- A user assigned CCDictionary
var getScriptObjectDict
(
)
virtual
Returns a user assigned CCDictionary.
- Returns
- A user assigned CCDictionary
local getScriptObjectDict
(
)
virtual
Returns a user assigned CCDictionary.
- Returns
- A user assigned CCDictionary
virtual int getStartFrame
(
)
const
inlinevirtual
Start frame index of this action.
var getStartFrame
(
)
inlinevirtual
Start frame index of this action.
local getStartFrame
(
)
inlinevirtual
Start frame index of this action.
virtual float getTimeSpeed
(
)
const
inlinevirtual
Get current animation speed.
var getTimeSpeed
(
)
inlinevirtual
Get current animation speed.
local getTimeSpeed
(
)
inlinevirtual
Get current animation speed.
virtual void gotoFrame
(
int
frameIndex )
protectedvirtual
var gotoFrame
(
var
frameIndex )
protectedvirtual
local gotoFrame
(
local
frameIndex )
protectedvirtual
virtual void gotoFrameAndPause
(
int
startIndex )
virtual
Goto the specified frame index, and pause at this index.
- Parameters
-
startIndex The animation will pause at this index.
var gotoFrameAndPause
(
var
startIndex )
virtual
Goto the specified frame index, and pause at this index.
- Parameters
-
startIndex The animation will pause at this index.
local gotoFrameAndPause
(
local
startIndex )
virtual
Goto the specified frame index, and pause at this index.
- Parameters
-
startIndex The animation will pause at this index.
virtual void gotoFrameAndPlay
(
int
startIndex )
virtual
Goto the specified frame index, and start playing from this index.
- Parameters
-
startIndex The animation will play from this index.
var gotoFrameAndPlay
(
var
startIndex )
virtual
Goto the specified frame index, and start playing from this index.
- Parameters
-
startIndex The animation will play from this index.
local gotoFrameAndPlay
(
local
startIndex )
virtual
Goto the specified frame index, and start playing from this index.
- Parameters
-
startIndex The animation will play from this index.
virtual void gotoFrameAndPlay
(
int
startIndex,
bool
loop
)
virtual
Goto the specified frame index, and start playing from this index.
- Parameters
-
startIndex The animation will play from this index.
loop Whether or not the animation need loop.
var gotoFrameAndPlay
(
var
startIndex,
var
loop
)
virtual
Goto the specified frame index, and start playing from this index.
- Parameters
-
startIndex The animation will play from this index.
loop Whether or not the animation need loop.
local gotoFrameAndPlay
(
local
startIndex,
local
loop
)
virtual
Goto the specified frame index, and start playing from this index.
- Parameters
-
startIndex The animation will play from this index.
loop Whether or not the animation need loop.
virtual void gotoFrameAndPlay
(
int
startIndex,
int
endIndex,
bool
loop
)
virtual
Goto the specified frame index, and start playing from start index, end at end index.
- Parameters
-
startIndex The animation will play from this index.
endIndex The animation will end at this index.
loop Whether or not the animation need loop.
var gotoFrameAndPlay
(
var
startIndex,
var
endIndex,
var
loop
)
virtual
Goto the specified frame index, and start playing from start index, end at end index.
- Parameters
-
startIndex The animation will play from this index.
endIndex The animation will end at this index.
loop Whether or not the animation need loop.
local gotoFrameAndPlay
(
local
startIndex,
local
endIndex,
local
loop
)
virtual
Goto the specified frame index, and start playing from start index, end at end index.
- Parameters
-
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 void gotoFrameAndPlay
(
int
startIndex,
int
endIndex,
int
currentFrameIndex,
bool
loop
)
virtual
Goto the specified frame index, and start playing from start index, end at end index.
- Parameters
-
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.
var gotoFrameAndPlay
(
var
startIndex,
var
endIndex,
var
currentFrameIndex,
var
loop
)
virtual
Goto the specified frame index, and start playing from start index, end at end index.
- Parameters
-
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.
local gotoFrameAndPlay
(
local
startIndex,
local
endIndex,
local
currentFrameIndex,
local
loop
)
virtual
Goto the specified frame index, and start playing from start index, end at end index.
- Parameters
-
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 bool init
(
)
virtual
virtual bool isDone
(
)
inlinevirtual
return true if the action has finished
Reimplemented from CCAction.
var isDone
(
)
inlinevirtual
return true if the action has finished
Reimplemented from CCAction.
local isDone
(
)
inlinevirtual
return true if the action has finished
Reimplemented from CCAction.
virtual bool isPlaying
(
)
const
virtual
Whether or not Action is playing.
var isPlaying
(
)
virtual
Whether or not Action is playing.
local isPlaying
(
)
virtual
Whether or not Action is playing.
virtual void pause
(
)
virtual
virtual void removeTimeline
(
Timeline *
timeline )
virtual
var removeTimeline
(
var
timeline )
virtual
local removeTimeline
(
local
timeline )
virtual
virtual void resume
(
)
virtual
var reverse
(
)
inlinevirtual
local reverse
(
)
inlinevirtual
virtual void setCurrentFrame
(
int
frameIndex )
virtual
Set current frame index, this will cause action plays to this frame.
var setCurrentFrame
(
var
frameIndex )
virtual
Set current frame index, this will cause action plays to this frame.
local setCurrentFrame
(
local
frameIndex )
virtual
Set current frame index, this will cause action plays to this frame.
virtual void setDuration
(
int
duration )
inlinevirtual
duration of the whole action
var setDuration
(
var
duration )
inlinevirtual
duration of the whole action
local setDuration
(
local
duration )
inlinevirtual
duration of the whole action
void setFrameEventCallFunc
(
CCObject *
target,
)
Set action's frame event callback function.
var setFrameEventCallFunc
(
var
target,
var
callFunc
)
Set action's frame event callback function.
local setFrameEventCallFunc
(
local
target,
local
callFunc
)
Set action's frame event callback function.
Returns a user assigned CCDictionary.
The scriptObjectDict will be retained once in this method, and the previous scriptObjectDict (if existed) will be relese. The scriptObjectDict will be released in destructure.
- Parameters
-
A user assigned CCObject
var setScriptObjectDict
(
var
scriptObjectDict )
virtual
Returns a user assigned CCDictionary.
The scriptObjectDict will be retained once in this method, and the previous scriptObjectDict (if existed) will be relese. The scriptObjectDict will be released in destructure.
- Parameters
-
A user assigned CCObject
local setScriptObjectDict
(
local
scriptObjectDict )
virtual
Returns a user assigned CCDictionary.
The scriptObjectDict will be retained once in this method, and the previous scriptObjectDict (if existed) will be relese. The scriptObjectDict will be released in destructure.
- Parameters
-
A user assigned CCObject
virtual void setTimeSpeed
(
float
speed )
inlinevirtual
Set the animation speed, this will speed up or slow down the speed.
var setTimeSpeed
(
var
speed )
inlinevirtual
Set the animation speed, this will speed up or slow down the speed.
local setTimeSpeed
(
local
speed )
inlinevirtual
Set the animation speed, this will speed up or slow down the speed.
called before the action start. It will also set the target.
Reimplemented from CCAction.
var startWithTarget
(
var
pTarget )
virtual
called before the action start. It will also set the target.
Reimplemented from CCAction.
local startWithTarget
(
local
pTarget )
virtual
called before the action start. It will also set the target.
Reimplemented from CCAction.
virtual void step
(
float
dt )
virtual
called every frame with it's delta time. DON'T override unless you know what you are doing.
Reimplemented from CCAction.
var step
(
var
dt )
virtual
called every frame with it's delta time. DON'T override unless you know what you are doing.
Reimplemented from CCAction.
local step
(
local
dt )
virtual
called every frame with it's delta time. DON'T override unless you know what you are doing.
Reimplemented from CCAction.
virtual void stepToFrame
(
int
frameIndex )
protectedvirtual
var stepToFrame
(
var
frameIndex )
protectedvirtual
local stepToFrame
(
local
frameIndex )
protectedvirtual
Friends And Related Function Documentation
Member Data Documentation
int _currentFrame
protected
var _currentFrame
protected
local _currentFrame
protected
local _duration
protected
local _endFrame
protected
var _frameEventCallFunc
protected
local _frameEventCallFunc
protected
var _frameEventTarget
protected
local _frameEventTarget
protected
float _frameInternal
protected
var _frameInternal
protected
local _frameInternal
protected
var _scriptObjectDict
protected
local _scriptObjectDict
protected
int _startFrame
protected
var _startFrame
protected
local _startFrame
protected
var _timelineList
protected
local _timelineList
protected
var _timelineMap
protected
local _timelineMap
protected
float _timeSpeed
protected
local _timeSpeed
protected
The documentation for this class was generated from the following file: