2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module CardinalSplineTo
|
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
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2015-03-19 11:55:42 +08:00
|
|
|
-- Return a PointArray.<br>
|
|
|
|
-- return A PointArray.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#CardinalSplineTo] getPoints
|
|
|
|
-- @param self
|
|
|
|
-- @return point_table#point_table ret (return value: point_table)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 11:55:42 +08:00
|
|
|
-- It will update the target position and change the _previousPosition to newPos<br>
|
|
|
|
-- param newPos The new position.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#CardinalSplineTo] updatePosition
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #vec2_table newPos
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return CardinalSplineTo#CardinalSplineTo self (return value: cc.CardinalSplineTo)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 11:55:42 +08:00
|
|
|
-- Initializes the action with a duration and an array of points.<br>
|
|
|
|
-- param duration In seconds.<br>
|
2015-03-27 13:46:01 +08:00
|
|
|
-- param points An PointArray.<br>
|
2015-03-19 11:55:42 +08:00
|
|
|
-- param tension Goodness of fit.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#CardinalSplineTo] initWithDuration
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float duration
|
|
|
|
-- @param #point_table points
|
|
|
|
-- @param #float tension
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
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=#CardinalSplineTo] startWithTarget
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #cc.Node target
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return CardinalSplineTo#CardinalSplineTo self (return value: cc.CardinalSplineTo)
|
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=#CardinalSplineTo] clone
|
|
|
|
-- @param self
|
|
|
|
-- @return CardinalSplineTo#CardinalSplineTo ret (return value: cc.CardinalSplineTo)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#CardinalSplineTo] reverse
|
|
|
|
-- @param self
|
|
|
|
-- @return CardinalSplineTo#CardinalSplineTo ret (return value: cc.CardinalSplineTo)
|
|
|
|
|
|
|
|
--------------------------------
|
2015-03-19 11:55:42 +08:00
|
|
|
-- param time In seconds.
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#CardinalSplineTo] update
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float time
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return CardinalSplineTo#CardinalSplineTo self (return value: cc.CardinalSplineTo)
|
2014-03-18 15:55:30 +08:00
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2015-03-19 20:30:15 +08:00
|
|
|
-- js ctor<br>
|
2014-09-02 13:45:07 +08:00
|
|
|
-- lua NA
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#CardinalSplineTo] CardinalSplineTo
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return CardinalSplineTo#CardinalSplineTo self (return value: cc.CardinalSplineTo)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
return nil
|