-------------------------------- -- @module Action -- @extend Ref -- @parent_module cc -------------------------------- -- called before the action start. It will also set the target. -- @function [parent=#Action] startWithTarget -- @param self -- @param #cc.Node target -------------------------------- -- Set the original target, since target can be nil.
-- Is the target that were used to run the action. Unless you are doing something complex, like ActionManager, you should NOT call this method.
-- The target is 'assigned', it is not 'retained'.
-- since v0.8.2 -- @function [parent=#Action] setOriginalTarget -- @param self -- @param #cc.Node originalTarget -------------------------------- -- returns a clone of action -- @function [parent=#Action] clone -- @param self -- @return Action#Action ret (return value: cc.Action) -------------------------------- -- -- @function [parent=#Action] getOriginalTarget -- @param self -- @return Node#Node ret (return value: cc.Node) -------------------------------- -- called after the action has finished. It will set the 'target' to nil.
-- IMPORTANT: You should never call "[action stop]" manually. Instead, use: "target->stopAction(action);" -- @function [parent=#Action] stop -- @param self -------------------------------- -- called once per frame. time a value between 0 and 1
-- For example:
-- - 0 means that the action just started
-- - 0.5 means that the action is in the middle
-- - 1 means that the action is over -- @function [parent=#Action] update -- @param self -- @param #float time -------------------------------- -- -- @function [parent=#Action] getTarget -- @param self -- @return Node#Node ret (return value: cc.Node) -------------------------------- -- called every frame with it's delta time. DON'T override unless you know what you are doing. -- @function [parent=#Action] step -- @param self -- @param #float dt -------------------------------- -- -- @function [parent=#Action] setTag -- @param self -- @param #int tag -------------------------------- -- -- @function [parent=#Action] getTag -- @param self -- @return int#int ret (return value: int) -------------------------------- -- The action will modify the target properties. -- @function [parent=#Action] setTarget -- @param self -- @param #cc.Node target -------------------------------- -- return true if the action has finished -- @function [parent=#Action] isDone -- @param self -- @return bool#bool ret (return value: bool) -------------------------------- -- returns a new action that performs the exactly the reverse action -- @function [parent=#Action] reverse -- @param self -- @return Action#Action ret (return value: cc.Action) return nil