-------------------------------- -- @module Follow -- @extend Action -- @parent_module cc -------------------------------- -- Alter behavior - turn on/off boundary.
-- param value Turn on/off boundary. -- @function [parent=#Follow] setBoundarySet -- @param self -- @param #bool value -- @return Follow#Follow self (return value: cc.Follow) -------------------------------- -- Initializes the action with a set boundary or with no boundary.
-- param followedNode The node to be followed.
-- param rect The boundary. If \p rect is equal to Rect::ZERO, it'll work
-- with no boundary. -- @function [parent=#Follow] initWithTarget -- @param self -- @param #cc.Node followedNode -- @param #rect_table rect -- @return bool#bool ret (return value: bool) -------------------------------- -- Initializes the action with a set boundary or with no boundary with offsets.
-- param followedNode The node to be followed.
-- param rect The boundary. If \p rect is equal to Rect::ZERO, it'll work
-- with no boundary.
-- param xOffset The horizontal offset from the center of the screen from which the
-- node is to be followed.It can be positive,negative or zero.If
-- set to zero the node will be horizontally centered followed.
-- param yOffset The vertical offset from the center of the screen from which the
-- node is to be followed.It can be positive,negative or zero.
-- If set to zero the node will be vertically centered followed.
-- If both xOffset and yOffset are set to zero,then the node will be horizontally and vertically centered followed. -- @function [parent=#Follow] initWithTargetAndOffset -- @param self -- @param #cc.Node followedNode -- @param #float xOffset -- @param #float yOffset -- @param #rect_table rect -- @return bool#bool ret (return value: bool) -------------------------------- -- Return boundarySet.
-- return Return boundarySet. -- @function [parent=#Follow] isBoundarySet -- @param self -- @return bool#bool ret (return value: bool) -------------------------------- -- Creates the action with a set boundary or with no boundary.
-- param followedNode The node to be followed.
-- param rect The boundary. If \p rect is equal to Rect::ZERO, it'll work
-- with no boundary. -- @function [parent=#Follow] create -- @param self -- @param #cc.Node followedNode -- @param #rect_table rect -- @return Follow#Follow ret (return value: cc.Follow) -------------------------------- -- Creates the action with a set boundary or with no boundary with offsets.
-- param followedNode The node to be followed.
-- param rect The boundary. If \p rect is equal to Rect::ZERO, it'll work
-- with no boundary.
-- param xOffset The horizontal offset from the center of the screen from which the
-- node is to be followed.It can be positive,negative or zero.If
-- set to zero the node will be horizontally centered followed.
-- param yOffset The vertical offset from the center of the screen from which the
-- node is to be followed.It can be positive,negative or zero.
-- If set to zero the node will be vertically centered followed.
-- If both xOffset and yOffset are set to zero,then the node will be horizontally and vertically centered followed. -- @function [parent=#Follow] createWithOffset -- @param self -- @param #cc.Node followedNode -- @param #float xOffset -- @param #float yOffset -- @param #rect_table rect -- @return Follow#Follow ret (return value: cc.Follow) -------------------------------- -- param dt in seconds.
-- js NA -- @function [parent=#Follow] step -- @param self -- @param #float dt -- @return Follow#Follow self (return value: cc.Follow) -------------------------------- -- -- @function [parent=#Follow] clone -- @param self -- @return Follow#Follow ret (return value: cc.Follow) -------------------------------- -- -- @function [parent=#Follow] stop -- @param self -- @return Follow#Follow self (return value: cc.Follow) -------------------------------- -- -- @function [parent=#Follow] reverse -- @param self -- @return Follow#Follow ret (return value: cc.Follow) -------------------------------- -- -- @function [parent=#Follow] isDone -- @param self -- @return bool#bool ret (return value: bool) -------------------------------- -- js ctor -- @function [parent=#Follow] Follow -- @param self -- @return Follow#Follow self (return value: cc.Follow) return nil