2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module Speed
|
2014-03-20 10:21:28 +08:00
|
|
|
-- @extend Action
|
2014-06-25 17:36:50 +08:00
|
|
|
-- @parent_module cc
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2015-03-19 11:55:42 +08:00
|
|
|
-- Replace the interior action.<br>
|
|
|
|
-- param action The new action, it will replace the running action.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Speed] setInnerAction
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #cc.ActionInterval action
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Speed#Speed self (return value: cc.Speed)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
2015-05-05 11:31:53 +08:00
|
|
|
--------------------------------
|
|
|
|
-- Return the speed.<br>
|
|
|
|
-- return The action speed.
|
|
|
|
-- @function [parent=#Speed] getSpeed
|
|
|
|
-- @param self
|
|
|
|
-- @return float#float ret (return value: float)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2015-03-19 11:55:42 +08:00
|
|
|
-- Alter the speed of the inner function in runtime. <br>
|
|
|
|
-- param speed Alter the speed of the inner function in runtime.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Speed] setSpeed
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float speed
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Speed#Speed self (return value: cc.Speed)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
2015-05-05 11:31:53 +08:00
|
|
|
--------------------------------
|
|
|
|
-- Initializes the action.
|
|
|
|
-- @function [parent=#Speed] initWithAction
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.ActionInterval action
|
|
|
|
-- @param #float speed
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2015-03-19 11:55:42 +08:00
|
|
|
-- Return the interior action.<br>
|
|
|
|
-- return The interior action.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Speed] getInnerAction
|
|
|
|
-- @param self
|
|
|
|
-- @return ActionInterval#ActionInterval ret (return value: cc.ActionInterval)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 11:55:42 +08:00
|
|
|
-- Create the action and set the speed.<br>
|
|
|
|
-- param action An action.<br>
|
|
|
|
-- param speed The action speed.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Speed] create
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #cc.ActionInterval action
|
|
|
|
-- @param #float speed
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @return Speed#Speed ret (return value: cc.Speed)
|
|
|
|
|
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=#Speed] startWithTarget
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #cc.Node target
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Speed#Speed self (return value: cc.Speed)
|
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=#Speed] reverse
|
|
|
|
-- @param self
|
|
|
|
-- @return Speed#Speed ret (return value: cc.Speed)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#Speed] clone
|
|
|
|
-- @param self
|
|
|
|
-- @return Speed#Speed ret (return value: cc.Speed)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#Speed] stop
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Speed#Speed self (return value: cc.Speed)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-01-20 16:17:36 +08:00
|
|
|
-- param dt in seconds.
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#Speed] step
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float dt
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Speed#Speed self (return value: cc.Speed)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 11:55:42 +08:00
|
|
|
-- Return true if the action has finished.<br>
|
|
|
|
-- return Is true if the action has finished.
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#Speed] isDone
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
2015-05-05 11:31:53 +08:00
|
|
|
--------------------------------
|
|
|
|
--
|
|
|
|
-- @function [parent=#Speed] Speed
|
|
|
|
-- @param self
|
|
|
|
-- @return Speed#Speed self (return value: cc.Speed)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
return nil
|