2014-03-10 14:04:58 +08:00
|
|
|
|
|
|
|
--------------------------------
|
|
|
|
-- @module Follow
|
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-23 22:37:03 +08:00
|
|
|
-- Alter behavior - turn on/off boundary. <br>
|
|
|
|
-- param value Turn on/off boundary.
|
2014-11-26 10:56:12 +08:00
|
|
|
-- @function [parent=#Follow] setBoundarySet
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #bool value
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Follow#Follow self (return value: cc.Follow)
|
2014-03-10 14:04:58 +08:00
|
|
|
|
2015-05-05 11:31:53 +08:00
|
|
|
--------------------------------
|
|
|
|
-- Initializes the action with a set boundary or with no boundary.<br>
|
|
|
|
-- param followedNode The node to be followed.<br>
|
|
|
|
-- param rect The boundary. If \p rect is equal to Rect::ZERO, it'll work<br>
|
|
|
|
-- with no boundary.
|
|
|
|
-- @function [parent=#Follow] initWithTarget
|
|
|
|
-- @param self
|
|
|
|
-- @param #cc.Node followedNode
|
|
|
|
-- @param #rect_table rect
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
--------------------------------
|
2015-03-23 22:37:03 +08:00
|
|
|
-- Return boundarySet.<br>
|
|
|
|
-- return Return boundarySet.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Follow] isBoundarySet
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
-- Creates the action with a set boundary or with no boundary.<br>
|
|
|
|
-- param followedNode The node to be followed.<br>
|
|
|
|
-- param rect The boundary. If \p rect is equal to Rect::ZERO, it'll work<br>
|
|
|
|
-- with no boundary.
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @function [parent=#Follow] create
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #cc.Node followedNode
|
2014-03-10 14:04:58 +08:00
|
|
|
-- @param #rect_table rect
|
|
|
|
-- @return Follow#Follow ret (return value: cc.Follow)
|
|
|
|
|
2014-03-18 15:55:30 +08:00
|
|
|
--------------------------------
|
2015-03-19 20:30:15 +08:00
|
|
|
-- param dt in seconds.<br>
|
|
|
|
-- js NA
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#Follow] step
|
|
|
|
-- @param self
|
2014-09-02 13:45:07 +08:00
|
|
|
-- @param #float dt
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Follow#Follow self (return value: cc.Follow)
|
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=#Follow] clone
|
|
|
|
-- @param self
|
|
|
|
-- @return Follow#Follow ret (return value: cc.Follow)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#Follow] stop
|
|
|
|
-- @param self
|
2015-01-21 17:33:26 +08:00
|
|
|
-- @return Follow#Follow self (return value: cc.Follow)
|
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=#Follow] reverse
|
|
|
|
-- @param self
|
|
|
|
-- @return Follow#Follow ret (return value: cc.Follow)
|
|
|
|
|
|
|
|
--------------------------------
|
2014-09-02 13:45:07 +08:00
|
|
|
--
|
2014-03-18 15:55:30 +08:00
|
|
|
-- @function [parent=#Follow] isDone
|
|
|
|
-- @param self
|
|
|
|
-- @return bool#bool ret (return value: bool)
|
|
|
|
|
2015-05-05 11:31:53 +08:00
|
|
|
--------------------------------
|
|
|
|
-- js ctor
|
|
|
|
-- @function [parent=#Follow] Follow
|
|
|
|
-- @param self
|
|
|
|
-- @return Follow#Follow self (return value: cc.Follow)
|
|
|
|
|
2014-03-10 14:04:58 +08:00
|
|
|
return nil
|