mirror of https://github.com/axmolengine/axmol.git
84 lines
2.5 KiB
Lua
84 lines
2.5 KiB
Lua
|
|
--------------------------------
|
|
-- @module Animate
|
|
-- @extend ActionInterval
|
|
-- @parent_module cc
|
|
|
|
--------------------------------
|
|
-- initializes the action with an Animation and will restore the original frame when the animation is over
|
|
-- @function [parent=#Animate] initWithAnimation
|
|
-- @param self
|
|
-- @param #cc.Animation animation
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
--------------------------------
|
|
-- @overload self
|
|
-- @overload self
|
|
-- @function [parent=#Animate] getAnimation
|
|
-- @param self
|
|
-- @return Animation#Animation ret (return value: cc.Animation)
|
|
|
|
--------------------------------
|
|
-- Gets the index of sprite frame currently displayed.<br>
|
|
-- return int the index of sprite frame currently displayed.
|
|
-- @function [parent=#Animate] getCurrentFrameIndex
|
|
-- @param self
|
|
-- @return int#int ret (return value: int)
|
|
|
|
--------------------------------
|
|
-- Sets the Animation object to be animated <br>
|
|
-- param animation certain animation.
|
|
-- @function [parent=#Animate] setAnimation
|
|
-- @param self
|
|
-- @param #cc.Animation animation
|
|
-- @return Animate#Animate self (return value: cc.Animate)
|
|
|
|
--------------------------------
|
|
-- Creates the action with an Animation and will restore the original frame when the animation is over.<br>
|
|
-- param animation A certain animation.<br>
|
|
-- return An autoreleased Animate object.
|
|
-- @function [parent=#Animate] create
|
|
-- @param self
|
|
-- @param #cc.Animation animation
|
|
-- @return Animate#Animate ret (return value: cc.Animate)
|
|
|
|
--------------------------------
|
|
--
|
|
-- @function [parent=#Animate] startWithTarget
|
|
-- @param self
|
|
-- @param #cc.Node target
|
|
-- @return Animate#Animate self (return value: cc.Animate)
|
|
|
|
--------------------------------
|
|
--
|
|
-- @function [parent=#Animate] clone
|
|
-- @param self
|
|
-- @return Animate#Animate ret (return value: cc.Animate)
|
|
|
|
--------------------------------
|
|
--
|
|
-- @function [parent=#Animate] stop
|
|
-- @param self
|
|
-- @return Animate#Animate self (return value: cc.Animate)
|
|
|
|
--------------------------------
|
|
--
|
|
-- @function [parent=#Animate] reverse
|
|
-- @param self
|
|
-- @return Animate#Animate ret (return value: cc.Animate)
|
|
|
|
--------------------------------
|
|
-- param t In seconds.
|
|
-- @function [parent=#Animate] update
|
|
-- @param self
|
|
-- @param #float t
|
|
-- @return Animate#Animate self (return value: cc.Animate)
|
|
|
|
--------------------------------
|
|
--
|
|
-- @function [parent=#Animate] Animate
|
|
-- @param self
|
|
-- @return Animate#Animate self (return value: cc.Animate)
|
|
|
|
return nil
|