2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module ActionTween
|
2014-03-20 10:21:28 +08:00
|
|
|
-- @extend ActionInterval
|
2014-06-25 17:36:50 +08:00
|
|
|
-- @parent_module cc
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2015-05-05 11:31:53 +08:00
|
|
|
--------------------------------
|
|
|
|
-- brief Initializes the action with the property name (key), and the from and to parameters.<br>
|
|
|
|
-- param duration The duration of the ActionTween. It's a value in seconds.<br>
|
|
|
|
-- param key The key of property which should be updated.<br>
|
|
|
|
-- param from The value of the specified property when the action begin.<br>
|
|
|
|
-- param to The value of the specified property when the action end.<br>
|
|
|
|
-- return If the initialization success, return true; otherwise, return false.
|
|
|
|
-- @function [parent=#ActionTween] initWithDuration
|
|
|
|
-- @param self
|
|
|
|
-- @param #float duration
|
|
|
|
-- @param #string key
|
|
|
|
-- @param #float from
|
|
|
|
-- @param #float to
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2015-03-19 11:55:42 +08:00
|
|
|
-- brief Create and initializes the action with the property name (key), and the from and to parameters.<br>
|
|
|
|
-- param duration The duration of the ActionTween. It's a value in seconds.<br>
|
|
|
|
-- param key The key of property which should be updated.<br>
|
|
|
|
-- param from The value of the specified property when the action begin.<br>
|
|
|
|
-- param to The value of the specified property when the action end.<br>
|
|
|
|
-- return If the creation success, return a pointer of ActionTween; otherwise, return nil.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#ActionTween] create
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float duration
|
|
|
|
-- @param #string key
|
|
|
|
-- @param #float from
|
|
|
|
-- @param #float to
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @return ActionTween#ActionTween ret (return value: cc.ActionTween)
|
|
|
|
|
2014-03-18 15:55:30 +08:00
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#ActionTween] startWithTarget
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #cc.Node target
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ActionTween#ActionTween self (return value: cc.ActionTween)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#ActionTween] clone
|
|
|
|
-- @param self
|
|
|
|
-- @return ActionTween#ActionTween ret (return value: cc.ActionTween)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 11:55:42 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#ActionTween] update
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float dt
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return ActionTween#ActionTween self (return value: cc.ActionTween)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#ActionTween] reverse
|
|
|
|
-- @param self
|
|
|
|
-- @return ActionTween#ActionTween ret (return value: cc.ActionTween)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
return nil
|