-------------------------------- -- @module ArmatureAnimation -- @extend ProcessBase -- @parent_module ccs -------------------------------- -- -- @function [parent=#ArmatureAnimation] getSpeedScale -- @param self -- @return float#float ret (return value: float) -------------------------------- -- Pause the Process -- @function [parent=#ArmatureAnimation] pause -- @param self -- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation) -------------------------------- -- Scale animation play speed.
-- param animationScale Scale value -- @function [parent=#ArmatureAnimation] setSpeedScale -- @param self -- @param #float speedScale -- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation) -------------------------------- -- Init with a Armature
-- param armature The Armature ArmatureAnimation will bind to -- @function [parent=#ArmatureAnimation] init -- @param self -- @param #ccs.Armature armature -- @return bool#bool ret (return value: bool) -------------------------------- -- -- @function [parent=#ArmatureAnimation] playWithIndexes -- @param self -- @param #array_table movementIndexes -- @param #int durationTo -- @param #bool loop -- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation) -------------------------------- -- Play animation by animation name.
-- param animationName The animation name you want to play
-- param 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
-- param 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 -- @function [parent=#ArmatureAnimation] play -- @param self -- @param #string animationName -- @param #int durationTo -- @param #int loop -- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation) -------------------------------- -- Go to specified frame and pause current movement. -- @function [parent=#ArmatureAnimation] gotoAndPause -- @param self -- @param #int frameIndex -- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation) -------------------------------- -- Resume the Process -- @function [parent=#ArmatureAnimation] resume -- @param self -- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation) -------------------------------- -- Stop the Process -- @function [parent=#ArmatureAnimation] stop -- @param self -- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation) -------------------------------- -- -- @function [parent=#ArmatureAnimation] update -- @param self -- @param #float dt -- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation) -------------------------------- -- -- @function [parent=#ArmatureAnimation] getAnimationData -- @param self -- @return AnimationData#AnimationData ret (return value: ccs.AnimationData) -------------------------------- -- -- @function [parent=#ArmatureAnimation] playWithIndex -- @param self -- @param #int animationIndex -- @param #int durationTo -- @param #int loop -- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation) -------------------------------- -- Get current movementID
-- return The name of current movement -- @function [parent=#ArmatureAnimation] getCurrentMovementID -- @param self -- @return string#string ret (return value: string) -------------------------------- -- -- @function [parent=#ArmatureAnimation] setAnimationData -- @param self -- @param #ccs.AnimationData data -- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation) -------------------------------- -- Go to specified frame and play current movement.
-- You need first switch to the movement you want to play, then call this function.
-- example : playByIndex(0);
-- gotoAndPlay(0);
-- playByIndex(1);
-- gotoAndPlay(0);
-- gotoAndPlay(15); -- @function [parent=#ArmatureAnimation] gotoAndPlay -- @param self -- @param #int frameIndex -- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation) -------------------------------- -- -- @function [parent=#ArmatureAnimation] playWithNames -- @param self -- @param #array_table movementNames -- @param #int durationTo -- @param #bool loop -- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation) -------------------------------- -- Get movement count -- @function [parent=#ArmatureAnimation] getMovementCount -- @param self -- @return long#long ret (return value: long) -------------------------------- -- Create with a Armature
-- param armature The Armature ArmatureAnimation will bind to -- @function [parent=#ArmatureAnimation] create -- @param self -- @param #ccs.Armature armature -- @return ArmatureAnimation#ArmatureAnimation ret (return value: ccs.ArmatureAnimation) -------------------------------- -- js ctor -- @function [parent=#ArmatureAnimation] ArmatureAnimation -- @param self -- @return ArmatureAnimation#ArmatureAnimation self (return value: ccs.ArmatureAnimation) return nil