2014-03-10 14:04:58 +08:00
--------------------------------
-- @module ActionManager
2014-03-20 10:21:28 +08:00
-- @extend Ref
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-18 22:02:42 +08:00
-- Gets an action given its tag an a target.<br>
-- param tag The action's tag.<br>
-- param target A certain target.<br>
-- return The Action the with the given tag.
2014-03-10 14:04:58 +08:00
-- @function [parent=#ActionManager] getActionByTag
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #int tag
-- @param #cc.Node target
2014-03-10 14:04:58 +08:00
-- @return Action#Action ret (return value: cc.Action)
--------------------------------
2015-03-18 22:02:42 +08:00
-- Removes an action given its tag and the target.<br>
-- param tag The action's tag.<br>
-- param target A certain target.
2014-03-10 14:04:58 +08:00
-- @function [parent=#ActionManager] removeActionByTag
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #int tag
-- @param #cc.Node target
2015-01-21 17:33:26 +08:00
-- @return ActionManager#ActionManager self (return value: cc.ActionManager)
2014-03-10 14:04:58 +08:00
--------------------------------
2014-09-02 13:45:07 +08:00
-- Removes all actions from all the targets.
2014-03-10 14:04:58 +08:00
-- @function [parent=#ActionManager] removeAllActions
-- @param self
2015-01-21 17:33:26 +08:00
-- @return ActionManager#ActionManager self (return value: cc.ActionManager)
2014-03-10 14:04:58 +08:00
--------------------------------
2014-09-02 13:45:07 +08:00
-- Adds an action with a target. <br>
-- If the target is already present, then the action will be added to the existing target.<br>
-- If the target is not present, a new instance of this target will be created either paused or not, and the action will be added to the newly created target.<br>
2015-03-18 22:02:42 +08:00
-- When the target is paused, the queued actions won't be 'ticked'.<br>
-- param action A certain action.<br>
-- param target The target which need to be added an action.<br>
-- param paused Is the target paused or not.
2014-03-10 14:04:58 +08:00
-- @function [parent=#ActionManager] addAction
-- @param self
-- @param #cc.Action action
2014-09-02 13:45:07 +08:00
-- @param #cc.Node target
-- @param #bool paused
2015-01-21 17:33:26 +08:00
-- @return ActionManager#ActionManager self (return value: cc.ActionManager)
2014-03-10 14:04:58 +08:00
--------------------------------
2015-03-18 22:02:42 +08:00
-- Resumes the target. All queued actions will be resumed.<br>
-- param target A certain target.
2014-03-10 14:04:58 +08:00
-- @function [parent=#ActionManager] resumeTarget
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #cc.Node target
2015-01-21 17:33:26 +08:00
-- @return ActionManager#ActionManager self (return value: cc.ActionManager)
2014-03-10 14:04:58 +08:00
--------------------------------
2015-03-18 22:02:42 +08:00
-- Main loop of ActionManager.<br>
-- param dt In seconds.
2014-03-10 14:04:58 +08:00
-- @function [parent=#ActionManager] update
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #float dt
2015-01-21 17:33:26 +08:00
-- @return ActionManager#ActionManager self (return value: cc.ActionManager)
2014-03-10 14:04:58 +08:00
2014-08-28 16:58:52 +08:00
--------------------------------
2015-03-18 22:02:42 +08:00
-- Pauses the target: all running actions and newly added actions will be paused.<br>
-- param target A certain target.
2014-08-28 16:58:52 +08:00
-- @function [parent=#ActionManager] pauseTarget
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #cc.Node target
2015-01-21 17:33:26 +08:00
-- @return ActionManager#ActionManager self (return value: cc.ActionManager)
2014-08-28 16:58:52 +08:00
2014-03-10 14:04:58 +08:00
--------------------------------
2014-09-02 13:45:07 +08:00
-- Returns the numbers of actions that are running in a certain target. <br>
-- Composable actions are counted as 1 action. Example:<br>
-- - If you are running 1 Sequence of 7 actions, it will return 1.<br>
2015-03-18 22:02:42 +08:00
-- - If you are running 7 Sequences of 2 actions, it will return 7.<br>
-- param target A certain target.<br>
2015-03-19 20:30:15 +08:00
-- return The numbers of actions that are running in a certain target.<br>
-- js NA
2014-03-10 14:04:58 +08:00
-- @function [parent=#ActionManager] getNumberOfRunningActionsInTarget
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #cc.Node target
2014-03-10 14:04:58 +08:00
-- @return long#long ret (return value: long)
--------------------------------
2014-09-02 13:45:07 +08:00
-- Removes all actions from a certain target.<br>
2015-03-18 22:02:42 +08:00
-- All the actions that belongs to the target will be removed.<br>
-- param target A certain target.
2014-03-10 14:04:58 +08:00
-- @function [parent=#ActionManager] removeAllActionsFromTarget
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #cc.Node target
2015-01-21 17:33:26 +08:00
-- @return ActionManager#ActionManager self (return value: cc.ActionManager)
2014-03-10 14:04:58 +08:00
--------------------------------
2015-03-18 22:02:42 +08:00
-- Resume a set of targets (convenience function to reverse a pauseAllRunningActions call).<br>
-- param targetsToResume A set of targets need to be resumed.
2014-03-10 14:04:58 +08:00
-- @function [parent=#ActionManager] resumeTargets
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #array_table targetsToResume
2015-01-21 17:33:26 +08:00
-- @return ActionManager#ActionManager self (return value: cc.ActionManager)
2014-03-10 14:04:58 +08:00
--------------------------------
2015-03-18 22:02:42 +08:00
-- Removes an action given an action reference.<br>
-- param action A certain target.
2014-03-10 14:04:58 +08:00
-- @function [parent=#ActionManager] removeAction
-- @param self
-- @param #cc.Action action
2015-01-21 17:33:26 +08:00
-- @return ActionManager#ActionManager self (return value: cc.ActionManager)
2014-03-10 14:04:58 +08:00
--------------------------------
2015-03-18 22:02:42 +08:00
-- Removes all actions given its tag and the target.<br>
-- param tag The actions' tag.<br>
2015-03-19 20:30:15 +08:00
-- param target A certain target.<br>
-- js NA
2014-08-28 16:58:52 +08:00
-- @function [parent=#ActionManager] removeAllActionsByTag
2014-03-10 14:04:58 +08:00
-- @param self
2014-09-02 13:45:07 +08:00
-- @param #int tag
-- @param #cc.Node target
2015-01-21 17:33:26 +08:00
-- @return ActionManager#ActionManager self (return value: cc.ActionManager)
2014-03-10 14:04:58 +08:00
--------------------------------
2015-03-18 22:02:42 +08:00
-- Pauses all running actions, returning a list of targets whose actions were paused.<br>
-- return A list of targets whose actions were paused.
2014-03-10 14:04:58 +08:00
-- @function [parent=#ActionManager] pauseAllRunningActions
-- @param self
-- @return array_table#array_table ret (return value: array_table)
--------------------------------
2014-09-02 13:45:07 +08:00
-- js ctor
2014-03-10 14:04:58 +08:00
-- @function [parent=#ActionManager] ActionManager
-- @param self
2015-01-21 17:33:26 +08:00
-- @return ActionManager#ActionManager self (return value: cc.ActionManager)
2014-03-10 14:04:58 +08:00
return nil