|
| void | addAction (Action *action, Node *target, bool paused) |
| | Adds an action with a target. More...
|
| |
|
void | removeAllActions () |
| | Removes all actions from all the targets.
|
| |
| void | removeAllActionsFromTarget (Node *target) |
| | Removes all actions from a certain target. More...
|
| |
| var | removeAllActionsFromTarget ( var target) |
| | Removes all actions from a certain target. More...
|
| |
| local | removeAllActionsFromTarget ( local target) |
| | Removes all actions from a certain target. More...
|
| |
| void | removeAction (Action *action) |
| | Removes an action given an action reference. More...
|
| |
| void | removeActionByTag (int tag, Node *target) |
| | Removes an action given its tag and the target. More...
|
| |
| var | removeActionByTag ( var tag, var target) |
| | Removes an action given its tag and the target. More...
|
| |
| local | removeActionByTag ( local tag, local target) |
| | Removes an action given its tag and the target. More...
|
| |
| void | removeAllActionsByTag (int tag, Node *target) |
| | Removes all actions given its tag and the target. More...
|
| |
| Action * | getActionByTag (int tag, const Node *target) const |
| | Gets an action given its tag an a target. More...
|
| |
| ssize_t | getNumberOfRunningActionsInTarget (const Node *target) const |
| | Returns the numbers of actions that are running in a certain target. More...
|
| |
| ssize_t | numberOfRunningActionsInTarget (Node *target) const |
| local | numberOfRunningActionsInTarget ( local target) |
| void | pauseTarget (Node *target) |
| | Pauses the target: all running actions and newly added actions will be paused. More...
|
| |
| void | resumeTarget (Node *target) |
| | Resumes the target. More...
|
| |
| Vector< Node * > | pauseAllRunningActions () |
| | Pauses all running actions, returning a list of targets whose actions were paused. More...
|
| |
| var | pauseAllRunningActions () |
| | Pauses all running actions, returning a list of targets whose actions were paused. More...
|
| |
| local | pauseAllRunningActions () |
| | Pauses all running actions, returning a list of targets whose actions were paused. More...
|
| |
| void | resumeTargets (const Vector< Node * > &targetsToResume) |
| | Resume a set of targets (convenience function to reverse a pauseAllRunningActions call). More...
|
| |
| var | resumeTargets ( var targetsToResume) |
| | Resume a set of targets (convenience function to reverse a pauseAllRunningActions call). More...
|
| |
| local | resumeTargets ( local targetsToResume) |
| | Resume a set of targets (convenience function to reverse a pauseAllRunningActions call). More...
|
| |
| void | update (float dt) |
| | Main loop of ActionManager. More...
|
| |
| void | retain () |
| | Retains the ownership. More...
|
| |
| void | release () |
| | Releases the ownership immediately. More...
|
| |
| Ref * | autorelease () |
| | Releases the ownership sometime soon automatically. More...
|
| |
| unsigned int | getReferenceCount () const |
| | Returns the Ref's current reference count. More...
|
| |
| virtual | ~Ref () |
| | Destructor. More...
|
| |
ActionManager is a singleton that manages all the actions.
Normally you won't need to use this singleton directly. 99% of the cases you will use the Node interface, which uses this singleton. But there are some cases where you might need to use this singleton. Examples:
- When you want to run an action where the target is different from a Node.
- When you want to pause / resume the actions.
- Since
- v0.8
| void addAction |
( |
Action * |
action, |
|
|
Node * |
target, |
|
|
bool |
paused |
|
) |
| |
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'.
- Parameters
-
| action | A certain action. |
| target | The target which need to be added an action. |
| paused | Is the target paused or not. |
| var addAction |
( |
var |
action, |
|
|
var |
target, |
|
|
var |
paused |
|
) |
| |
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'.
- Parameters
-
| action | A certain action. |
| target | The target which need to be added an action. |
| paused | Is the target paused or not. |
| local addAction |
( |
local |
action, |
|
|
local |
target, |
|
|
local |
paused |
|
) |
| |
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'.
- Parameters
-
| action | A certain action. |
| target | The target which need to be added an action. |
| paused | Is the target paused or not. |