!#en
Adds an action with a target.
If the target is already present, then the action will be added to the existing target.
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.
When the target is paused, the queued actions won't be 'ticked'.
!#zh
增加一个动作,同时还需要提供动作的目标对象,目标对象是否暂停作为参数。
如果目标已存在,动作将会被直接添加到现有的节点中。
如果目标不存在,将为这一目标创建一个新的实例,并将动作添加进去。
当目标状态的 paused 为 true,动作将不会被执行
!#en
Returns the numbers of actions that are running in a certain target.
Composable actions are counted as 1 action.
Example:
!#en Pauses all running actions, returning a list of targets whose actions were paused. !#zh 暂停所有正在运行的动作,返回一个包含了那些动作被暂停了的目标对象的列表。
a list of targets whose actions were paused.
!#en Pauses the target: all running actions and newly added actions will be paused. !#zh 暂停指定对象:所有正在运行的动作和新添加的动作都将会暂停。
!#en Pause a set of targets. !#zh 暂停一组指定对象。
!#en
purges the shared action manager. It releases the retained instance.
because it uses this, so it can not be static.
!#zh
清除共用的动作管理器。它释放了持有的实例。
因为它使用 this,因此它不能是静态的。
!#en Removes an action given an action reference. !#zh 移除指定的动作。
!#en Removes an action given its tag and the target. !#zh 删除指定对象下特定标签的一个动作,将删除首个匹配到的动作。
!#en Removes all actions from all the targets. !#zh 移除所有对象的所有动作。
!#en
Removes all actions from a certain target.
All the actions that belongs to the target will be removed.
!#zh
移除指定对象上的所有动作。
属于该目标的所有的动作将被删除。
!#en Resumes the target. All queued actions will be resumed. !#zh 让指定目标恢复运行。在执行序列中所有被暂停的动作将重新恢复运行。
!#en Resume a set of targets (convenience function to reverse a pauseAllRunningActions or pauseTargets call). !#zh 让一组指定对象恢复运行(用来逆转 pauseAllRunningActions 效果的便捷函数)。
!#en The ActionManager update。 !#zh ActionManager 主循环。
delta time in seconds
Generated using TypeDoc
!#en
ActionManager
is a class that can manage actions.Normally you won't need to use this class directly. 99% of the cases you will use the CCNode interface, which uses this class's singleton object. But there are some cases where you might need to use this class.
Examples:
!#zh
ActionManager
是可以管理动作的单例类。通常你并不需要直接使用这个类,99%的情况您将使用 CCNode 的接口。
但也有一些情况下,您可能需要使用这个类。
例如:
{@link cocos2d/core/CCActionManager/ActionManager.js}