2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module ActionTimeline
|
2016-01-20 18:21:41 +08:00
|
|
|
-- @extend Action,PlayableProtocol
|
2015-09-29 15:45:48 +08:00
|
|
|
-- @parent_module ccs
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ActionTimeline] clearFrameEndCallFuncs
|
|
|
|
-- @param self
|
|
|
|
-- @return ActionTimeline#ActionTimeline self (return value: ccs.ActionTimeline)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- add a frame end call back to animation's end frame<br>
|
|
|
|
-- param animationName @addFrameEndCallFunc, make the animationName as funcKey<br>
|
|
|
|
-- param func the callback function
|
|
|
|
-- @function [parent=#ActionTimeline] setAnimationEndCallFunc
|
|
|
|
-- @param self
|
|
|
|
-- @param #string animationName
|
|
|
|
-- @param #function func
|
|
|
|
-- @return ActionTimeline#ActionTimeline self (return value: ccs.ActionTimeline)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- add Timeline to ActionTimeline
|
|
|
|
-- @function [parent=#ActionTimeline] addTimeline
|
|
|
|
-- @param self
|
|
|
|
-- @param #ccs.Timeline timeline
|
|
|
|
-- @return ActionTimeline#ActionTimeline self (return value: ccs.ActionTimeline)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- Get current frame.
|
|
|
|
-- @function [parent=#ActionTimeline] getCurrentFrame
|
|
|
|
-- @param self
|
|
|
|
-- @return int#int ret (return value: int)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- Start frame index of this action
|
|
|
|
-- @function [parent=#ActionTimeline] getStartFrame
|
|
|
|
-- @param self
|
|
|
|
-- @return int#int ret (return value: int)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- Pause the animation.
|
|
|
|
-- @function [parent=#ActionTimeline] pause
|
|
|
|
-- @param self
|
|
|
|
-- @return ActionTimeline#ActionTimeline self (return value: ccs.ActionTimeline)
|
|
|
|
|
2016-01-20 18:21:41 +08:00
|
|
|
--------------------------------
|
|
|
|
-- / @{/ @name implement Playable Protocol
|
|
|
|
-- @function [parent=#ActionTimeline] start
|
|
|
|
-- @param self
|
|
|
|
-- @return ActionTimeline#ActionTimeline self (return value: ccs.ActionTimeline)
|
|
|
|
|
2015-09-29 15:45:48 +08:00
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ActionTimeline] init
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ActionTimeline] removeTimeline
|
|
|
|
-- @param self
|
|
|
|
-- @param #ccs.Timeline timeline
|
|
|
|
-- @return ActionTimeline#ActionTimeline self (return value: ccs.ActionTimeline)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ActionTimeline] clearFrameEventCallFunc
|
|
|
|
-- @param self
|
|
|
|
-- @return ActionTimeline#ActionTimeline self (return value: ccs.ActionTimeline)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- Last frame callback will call when arriving last frame
|
|
|
|
-- @function [parent=#ActionTimeline] setLastFrameCallFunc
|
|
|
|
-- @param self
|
|
|
|
-- @param #function listener
|
|
|
|
-- @return ActionTimeline#ActionTimeline self (return value: ccs.ActionTimeline)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ActionTimeline] getTimelines
|
|
|
|
-- @param self
|
|
|
|
-- @return array_table#array_table ret (return value: array_table)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ActionTimeline] play
|
|
|
|
-- @param self
|
|
|
|
-- @param #string animationName
|
|
|
|
-- @param #bool loop
|
|
|
|
-- @return ActionTimeline#ActionTimeline self (return value: ccs.ActionTimeline)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ActionTimeline] getAnimationInfo
|
|
|
|
-- @param self
|
|
|
|
-- @param #string animationName
|
|
|
|
-- @return AnimationInfo#AnimationInfo ret (return value: ccs.AnimationInfo)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- Resume the animation.
|
|
|
|
-- @function [parent=#ActionTimeline] resume
|
|
|
|
-- @param self
|
|
|
|
-- @return ActionTimeline#ActionTimeline self (return value: ccs.ActionTimeline)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- add a callback function after played frameIndex<br>
|
|
|
|
-- param frameIndex the frame index call back after<br>
|
|
|
|
-- param funcKey for identity the callback function<br>
|
|
|
|
-- param func the callback function
|
|
|
|
-- @function [parent=#ActionTimeline] addFrameEndCallFunc
|
|
|
|
-- @param self
|
|
|
|
-- @param #int frameIndex
|
|
|
|
-- @param #string funcKey
|
|
|
|
-- @param #function func
|
|
|
|
-- @return ActionTimeline#ActionTimeline self (return value: ccs.ActionTimeline)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ActionTimeline] removeAnimationInfo
|
|
|
|
-- @param self
|
|
|
|
-- @param #string animationName
|
|
|
|
-- @return ActionTimeline#ActionTimeline self (return value: ccs.ActionTimeline)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- Get current animation speed.
|
|
|
|
-- @function [parent=#ActionTimeline] getTimeSpeed
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- AnimationInfo
|
|
|
|
-- @function [parent=#ActionTimeline] addAnimationInfo
|
|
|
|
-- @param self
|
|
|
|
-- @param #ccs.AnimationInfo animationInfo
|
|
|
|
-- @return ActionTimeline#ActionTimeline self (return value: ccs.ActionTimeline)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ActionTimeline] getDuration
|
|
|
|
-- @param self
|
|
|
|
-- @return int#int ret (return value: int)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- Goto the specified frame index, and pause at this index.<br>
|
|
|
|
-- param startIndex The animation will pause at this index.
|
|
|
|
-- @function [parent=#ActionTimeline] gotoFrameAndPause
|
|
|
|
-- @param self
|
|
|
|
-- @param #int startIndex
|
|
|
|
-- @return ActionTimeline#ActionTimeline self (return value: ccs.ActionTimeline)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- Whether or not Action is playing.
|
|
|
|
-- @function [parent=#ActionTimeline] isPlaying
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ActionTimeline] removeFrameEndCallFuncs
|
|
|
|
-- @param self
|
|
|
|
-- @param #int frameIndex
|
|
|
|
-- @return ActionTimeline#ActionTimeline self (return value: ccs.ActionTimeline)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @overload self, int, bool
|
|
|
|
-- @overload self, int
|
|
|
|
-- @overload self, int, int, bool
|
|
|
|
-- @overload self, int, int, int, bool
|
|
|
|
-- @function [parent=#ActionTimeline] gotoFrameAndPlay
|
|
|
|
-- @param self
|
|
|
|
-- @param #int startIndex
|
|
|
|
-- @param #int endIndex
|
|
|
|
-- @param #int currentFrameIndex
|
|
|
|
-- @param #bool loop
|
|
|
|
-- @return ActionTimeline#ActionTimeline self (return value: ccs.ActionTimeline)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ActionTimeline] IsAnimationInfoExists
|
|
|
|
-- @param self
|
|
|
|
-- @param #string animationName
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- End frame of this action.<br>
|
|
|
|
-- When action play to this frame, if action is not loop, then it will stop, <br>
|
|
|
|
-- or it will play from start frame again.
|
|
|
|
-- @function [parent=#ActionTimeline] getEndFrame
|
|
|
|
-- @param self
|
|
|
|
-- @return int#int ret (return value: int)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- Set the animation speed, this will speed up or slow down the speed.
|
|
|
|
-- @function [parent=#ActionTimeline] setTimeSpeed
|
|
|
|
-- @param self
|
|
|
|
-- @param #float speed
|
|
|
|
-- @return ActionTimeline#ActionTimeline self (return value: ccs.ActionTimeline)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ActionTimeline] clearLastFrameCallFunc
|
|
|
|
-- @param self
|
|
|
|
-- @return ActionTimeline#ActionTimeline self (return value: ccs.ActionTimeline)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- duration of the whole action
|
|
|
|
-- @function [parent=#ActionTimeline] setDuration
|
|
|
|
-- @param self
|
|
|
|
-- @param #int duration
|
|
|
|
-- @return ActionTimeline#ActionTimeline self (return value: ccs.ActionTimeline)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- Set current frame index, this will cause action plays to this frame.
|
|
|
|
-- @function [parent=#ActionTimeline] setCurrentFrame
|
|
|
|
-- @param self
|
|
|
|
-- @param #int frameIndex
|
|
|
|
-- @return ActionTimeline#ActionTimeline self (return value: ccs.ActionTimeline)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ActionTimeline] removeFrameEndCallFunc
|
|
|
|
-- @param self
|
|
|
|
-- @param #int frameIndex
|
|
|
|
-- @param #string funcKey
|
|
|
|
-- @return ActionTimeline#ActionTimeline self (return value: ccs.ActionTimeline)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ActionTimeline] create
|
|
|
|
-- @param self
|
|
|
|
-- @return ActionTimeline#ActionTimeline ret (return value: ccs.ActionTimeline)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
2016-01-20 18:21:41 +08:00
|
|
|
-- @function [parent=#ActionTimeline] startWithTarget
|
2015-09-29 15:45:48 +08:00
|
|
|
-- @param self
|
2016-01-20 18:21:41 +08:00
|
|
|
-- @param #cc.Node target
|
2015-09-29 15:45:48 +08:00
|
|
|
-- @return ActionTimeline#ActionTimeline self (return value: ccs.ActionTimeline)
|
|
|
|
|
|
|
|
--------------------------------
|
2016-01-20 18:21:41 +08:00
|
|
|
-- Returns a reverse of ActionTimeline. <br>
|
|
|
|
-- Not implement yet.
|
|
|
|
-- @function [parent=#ActionTimeline] reverse
|
2015-09-29 15:45:48 +08:00
|
|
|
-- @param self
|
2016-01-20 18:21:41 +08:00
|
|
|
-- @return ActionTimeline#ActionTimeline ret (return value: ccs.ActionTimeline)
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- Returns a clone of ActionTimeline
|
|
|
|
-- @function [parent=#ActionTimeline] clone
|
|
|
|
-- @param self
|
|
|
|
-- @return ActionTimeline#ActionTimeline ret (return value: ccs.ActionTimeline)
|
|
|
|
|
|
|
|
--------------------------------
|
2016-01-20 18:21:41 +08:00
|
|
|
--
|
|
|
|
-- @function [parent=#ActionTimeline] stop
|
2015-09-29 15:45:48 +08:00
|
|
|
-- @param self
|
2016-01-20 18:21:41 +08:00
|
|
|
-- @return ActionTimeline#ActionTimeline self (return value: ccs.ActionTimeline)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ActionTimeline] step
|
|
|
|
-- @param self
|
|
|
|
-- @param #float delta
|
|
|
|
-- @return ActionTimeline#ActionTimeline self (return value: ccs.ActionTimeline)
|
2015-09-29 15:45:48 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ActionTimeline] isDone
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#ActionTimeline] ActionTimeline
|
|
|
|
-- @param self
|
|
|
|
-- @return ActionTimeline#ActionTimeline self (return value: ccs.ActionTimeline)
|
|
|
|
|
|
|
|
return nil
|