2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module ArmatureAnimation
|
2014-03-26 14:03:04 +08:00
|
|
|
-- @extend ProcessBase
|
2014-06-25 17:36:50 +08:00
|
|
|
-- @parent_module ccs
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#ArmatureAnimation] getSpeedScale
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Pause the Process
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#ArmatureAnimation] pause
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Scale animation play speed.<br>
|
|
|
|
-- param animationScale Scale value
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#ArmatureAnimation] setSpeedScale
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float speedScale
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Init with a Armature<br>
|
|
|
|
-- param armature The Armature ArmatureAnimation will bind to
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#ArmatureAnimation] init
|
|
|
|
-- @param self
|
|
|
|
-- @param #ccs.Armature armature
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#ArmatureAnimation] playWithIndexes
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #array_table movementIndexes
|
|
|
|
-- @param #int durationTo
|
|
|
|
-- @param #bool loop
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Play animation by animation name.<br>
|
|
|
|
-- param animationName The animation name you want to play<br>
|
|
|
|
-- param durationTo The frames between two animation changing-over.<br>
|
|
|
|
-- It's meaning is changing to this animation need how many frames<br>
|
|
|
|
-- -1 : use the value from MovementData get from flash design panel<br>
|
|
|
|
-- param loop Whether the animation is loop<br>
|
|
|
|
-- loop < 0 : use the value from MovementData get from flash design panel<br>
|
|
|
|
-- loop = 0 : this animation is not loop<br>
|
|
|
|
-- loop > 0 : this animation is loop
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#ArmatureAnimation] play
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #string animationName
|
|
|
|
-- @param #int durationTo
|
|
|
|
-- @param #int loop
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Go to specified frame and pause current movement.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#ArmatureAnimation] gotoAndPause
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #int frameIndex
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Resume the Process
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#ArmatureAnimation] resume
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Stop the Process
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#ArmatureAnimation] stop
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#ArmatureAnimation] update
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float dt
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#ArmatureAnimation] getAnimationData
|
|
|
|
-- @param self
|
|
|
|
-- @return AnimationData#AnimationData ret (return value: ccs.AnimationData)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#ArmatureAnimation] playWithIndex
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #int animationIndex
|
|
|
|
-- @param #int durationTo
|
|
|
|
-- @param #int loop
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Get current movementID<br>
|
|
|
|
-- return The name of current movement
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#ArmatureAnimation] getCurrentMovementID
|
|
|
|
-- @param self
|
|
|
|
-- @return string#string ret (return value: string)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#ArmatureAnimation] setAnimationData
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #ccs.AnimationData data
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Go to specified frame and play current movement.<br>
|
|
|
|
-- You need first switch to the movement you want to play, then call this function.<br>
|
|
|
|
-- example : playByIndex(0);<br>
|
|
|
|
-- gotoAndPlay(0);<br>
|
|
|
|
-- playByIndex(1);<br>
|
|
|
|
-- gotoAndPlay(0);<br>
|
|
|
|
-- gotoAndPlay(15);
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#ArmatureAnimation] gotoAndPlay
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #int frameIndex
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#ArmatureAnimation] playWithNames
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #array_table movementNames
|
|
|
|
-- @param #int durationTo
|
|
|
|
-- @param #bool loop
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Get movement count
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#ArmatureAnimation] getMovementCount
|
|
|
|
-- @param self
|
|
|
|
-- @return long#long ret (return value: long)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Create with a Armature<br>
|
|
|
|
-- param armature The Armature ArmatureAnimation will bind to
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#ArmatureAnimation] create
|
|
|
|
-- @param self
|
|
|
|
-- @param #ccs.Armature armature
|
|
|
|
-- @return ArmatureAnimation#ArmatureAnimation ret (return value: ccs.ArmatureAnimation)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- js ctor
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#ArmatureAnimation] ArmatureAnimation
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
return nil
|